[CC Hans in case we can improve some things in the clang-cl driver]
Details
Diff Detail
Event Timeline
lib/asan/tests/CMakeLists.txt | ||
---|---|---|
75 | I think adding -fsanitize-blacklist (and possible others) and -mllvm to clang-cl's supported flags would be reasonable. |
I think adding -fsanitize-blacklist (and possible others) and -mllvm to
clang-cl's supported flags would be reasonable.
Sounds good!
I assume it shouldn't block my patch.
lib/asan/tests/CMakeLists.txt | ||
---|---|---|
74 | Can you just remove these two lines (asan-stack and asan-globals)? |
Removed two redundant lines per Kostya's comment.
These flags are now =1 by default.
lib/asan/tests/CMakeLists.txt | ||
---|---|---|
74 | Done |
-Xclang is horrible. Please add a FIXME assigned to you to remove this as soon as the necessary flags are supported by clang-cl.
lib/asan/tests/CMakeLists.txt | ||
---|---|---|
79–82 | Why do you need this? If there is no libstdc++ on Windows, you should instead detect this in the build system and introduce | |
108–111 | ditto |
OK, sounds reasonable.
Do I need to do another round of review when I address these three comments?
Feel free to submit after addressing comments.
lib/asan/tests/CMakeLists.txt | ||
---|---|---|
34 | You can use COMPILER_RT_HAS_G_FLAG / COMPILER_RT_HAS_Zi_FLAG here. |
Landed everything except for one questionable if() in r208682.
lib/asan/tests/CMakeLists.txt | ||
---|---|---|
79–82 | We had an offline discussion here and wonder why doesn't the driver itself pass this flag? We also have to do if(NOT MSVC) for the recently-introduced --driver=g++ flag here anyways, so not clear if the extra variable is worth it. (we can probably discuss that on the commit email) |
You can use COMPILER_RT_HAS_G_FLAG / COMPILER_RT_HAS_Zi_FLAG here.