[compiler-rt] r183891 - [LSan] fix link flags for building unit tests

Alexey Samsonov samsonov at google.com
Thu Jun 13 00:23:18 PDT 2013


Author: samsonov
Date: Thu Jun 13 02:23:18 2013
New Revision: 183891

URL: http://llvm.org/viewvc/llvm-project?rev=183891&view=rev
Log:
[LSan] fix link flags for building unit tests

Modified:
    compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt

Modified: compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt?rev=183891&r1=183890&r2=183891&view=diff
==============================================================================
--- compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt (original)
+++ compiler-rt/trunk/lib/lsan/tests/CMakeLists.txt Thu Jun 13 02:23:18 2013
@@ -15,7 +15,7 @@ set(LSAN_TESTS_CFLAGS
   -I${LSAN_SRC_DIR})
 
 set(LSAN_TEST_LINK_FLAGS_COMMON
-  -lstdc++ -ldl -lpthread)
+  -lstdc++ -ldl -lpthread -lm)
 
 add_custom_target(LsanUnitTests)
 set_target_properties(LsanUnitTests PROPERTIES





More information about the llvm-commits mailing list