How to enable asan. tsan, etc for compile_commands #3630
Answered
by
waruqi
davemackintosh
asked this question in
Q&A
-
I would like to see all the flags I enable for the target I'm building appear in the compile_commands.json file so my editor can give me the same results as my build but no matter what I try, I can't get the flags for the compiler saved to the compilation database. Either the flags aren't being set at compile time or they aren't considered when generating the compile_commands.json. |
Beta Was this translation helpful? Give feedback.
Answered by
waruqi
Apr 14, 2023
Replies: 1 comment 4 replies
-
please show your xmake.lua configuration. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
asan/tsan have different flags and I'm not sure if they can be turned on at the same time. At the moment rule mode, only one can be switched globally.
But you can add multiple flags at the same time yourself with add_cxflags/add_ldflags