Skip to content

C++ compilations options from Bazel CLI and external dependencies using Bazel #25413

Answered by keith
krinkinmu asked this question in Q&A

You must be logged in to vote

In your example compile command that compilation is actually being done for the exec configuration, you can tell this from the bazel-out/k8-opt-exec-ST in the output file path.

You can read more about the exec configuration here https://www.reddit.com/r/bazel/comments/18hg596/whats_the_meaning_of_exec_configuration/ / https://bazel.build/extending/rules#configurations

It's likely that for the exec configuration you don't want sanitizers to apply, but if you do you can pass --host_copt=-fsanitize=whatever.

Replies: 1 comment 6 replies

You must be logged in to vote
6 replies
@keith

keith Feb 27, 2025
Collaborator

@krinkinmu

@keith

keith Feb 27, 2025
Collaborator

@krinkinmu

@keith

keith Feb 28, 2025
Collaborator

Answer selected by krinkinmu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants