Skip to content

ws_main.py: Make --sanitized work with clang #1170

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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