[PATCH] D52878: [test-suite] Add flags for stdthreadbug.cpp when building static
Matthias Braun via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 1 18:17:46 PDT 2018
MatzeB added inline comments.
================
Comment at: SingleSource/UnitTests/C++11/CMakeLists.txt:3
list(APPEND LDFLAGS -lstdc++ -pthread)
+if("${ARCH}" STREQUAL "Mips")
+ list(APPEND LDFLAGS -Wl,--whole-archive -lpthread -Wl,--no-whole-archive)
----------------
MatzeB wrote:
> You can write this as `if(ARCH STREQUAL Mips)` in cmake.
I meant `if(ARCH STREQUAL "Mips")`
https://reviews.llvm.org/D52878
More information about the llvm-commits
mailing list