[compiler-rt] [Fuchsia][cmake] Avoid referencing cxx_shared in compiler-rt (PR #112257)
Petr Hosek via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 14 14:02:03 PDT 2024
================
@@ -73,11 +73,10 @@ endmacro()
test_fuzzer("default")
if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
- if(TARGET cxx_shared)
- test_fuzzer("libc++" DEPS cxx_shared)
- endif()
- if(TARGET cxx_static)
+ if(LIBCXX_ENABLE_STATIC)
test_fuzzer("static-libc++" DEPS cxx_static)
+ elseif(LIBCXX_ENABLE_SHARED)
----------------
petrhosek wrote:
The previous version test both static and shared if both were enabled, I think we should preserve that.
```suggestion
if(LIBCXX_ENABLE_SHARED)
```
https://github.com/llvm/llvm-project/pull/112257
More information about the llvm-commits
mailing list