Skip to content

Conversation

pespin
Copy link

@pespin pespin commented Mar 28, 2025

While compiling with:
"""
CC=clang CXX=clang++ ./b configure --sanitized
CC=clang CXX=clang++ ./b build
"""

I got:
"""
clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'? """

This commit passes expected param name to clang while still passing the other one to gcc.
With commit applied, one can successfully build and run sanitized clang-compiled trex binaries.

While compiling with:
"""
CC=clang  CXX=clang++ ./b configure --sanitized
CC=clang  CXX=clang++ ./b build
"""

I got:
"""
clang: error: unknown argument '-static-libasan'; did you mean '-static-libsan'?
"""

This commit passes expected param name to clang while still passing the
other one to gcc.
With commit applied, one can successfully build and run sanitized clang-compiled
trex binaries.
@pespin pespin force-pushed the pespin/pr-clang-asan branch from 54533ba to 71f9b6f Compare March 28, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant