[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:12:55 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)
----------------
You can write this as `if(ARCH STREQUAL Mips)` in cmake.


https://reviews.llvm.org/D52878





More information about the llvm-commits mailing list