Adds a cmake fix for empty CMAKE_CXX_FLAGS in gwp_asan, profile,
scudo-standalone.
Details
- Reviewers
vitalybuka
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| compiler-rt/lib/gwp_asan/CMakeLists.txt | ||
|---|---|---|
| 42 | why do we need this if? | |
| compiler-rt/lib/gwp_asan/CMakeLists.txt | ||
|---|---|---|
| 42 | cmake was giving an error about REGEX if CMAKE_CXX_FLAGS is empty: something like REGEX sub-command REPLACE requires at least four arguments. But after removing this patch and rebuilding, I cannot reproduce the failure I saw before. I must have done something invalid. | |
| compiler-rt/lib/gwp_asan/CMakeLists.txt | ||
|---|---|---|
| 42 | Ok I have reproduced the failure. hexagon-unknown-linux-musl-clang++ is built with CLANG_DEFAULT_CXX_STDLIB="libc++". Perhaps that eliminates the need for CMAKE_CXX_FLAGS to contain -stdlib=libc++? And if it's not there (and CMAKE_CXX_FLAGS is empty), I get this failure: CMake Error at lib/scudo/standalone/CMakeLists.txt:14 (string): string sub-command REGEX, mode REPLACE needs at least 6 arguments total to command. ... and for lib/profile/CMakeLists.txt:116 etc. | |
| compiler-rt/lib/gwp_asan/CMakeLists.txt | ||
|---|---|---|
| 43 | This should be enough | |
why do we need this if?
it looks no-op for empty string anyway