[test-suite] r258050 - [test-suite] Add -pthread to Misc-C++-EH LDFLAGS
Chad Rosier via llvm-commits
llvm-commits at lists.llvm.org
Mon Jan 18 07:43:25 PST 2016
Author: mcrosier
Date: Mon Jan 18 09:43:25 2016
New Revision: 258050
URL: http://llvm.org/viewvc/llvm-project?rev=258050&view=rev
Log:
[test-suite] Add -pthread to Misc-C++-EH LDFLAGS
The benchmark built under SingleSource/Benchmarks/Misc-C++-EH requires
pthread functions but did not previously have -pthread in LDFLAGS.
This causes an issue when attempting to statically compile the binary.
Modified:
test-suite/trunk/SingleSource/Benchmarks/Misc-C++-EH/CMakeLists.txt
Modified: test-suite/trunk/SingleSource/Benchmarks/Misc-C++-EH/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/SingleSource/Benchmarks/Misc-C%2B%2B-EH/CMakeLists.txt?rev=258050&r1=258049&r2=258050&view=diff
==============================================================================
--- test-suite/trunk/SingleSource/Benchmarks/Misc-C++-EH/CMakeLists.txt (original)
+++ test-suite/trunk/SingleSource/Benchmarks/Misc-C++-EH/CMakeLists.txt Mon Jan 18 09:43:25 2016
@@ -1,4 +1,5 @@
-list(APPEND LDFLAGS -lm -lstdc++)
+list(APPEND CPPFLAGS -pthread)
+list(APPEND LDFLAGS -lm -lstdc++ -pthread)
set(LIBS -lstdc++)
set(REQUIRES_EH_SUPPORT 1)
llvm_singlesource()
More information about the llvm-commits
mailing list