[compiler-rt] r222343 - tsan: don't add -pie when compiling tests
Dmitry Vyukov
dvyukov at google.com
Wed Nov 19 02:45:53 PST 2014
Author: dvyukov
Date: Wed Nov 19 04:45:53 2014
New Revision: 222343
URL: http://llvm.org/viewvc/llvm-project?rev=222343&view=rev
Log:
tsan: don't add -pie when compiling tests
driver should add it as necessary
Modified:
compiler-rt/trunk/test/tsan/test_output.sh
Modified: compiler-rt/trunk/test/tsan/test_output.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/test_output.sh?rev=222343&r1=222342&r2=222343&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/test_output.sh (original)
+++ compiler-rt/trunk/test/tsan/test_output.sh Wed Nov 19 04:45:53 2014
@@ -12,8 +12,8 @@ TSAN_DIR=$(dirname $0)/../../lib/tsan
: ${FILECHECK:=FileCheck}
# TODO: add testing for all of -O0...-O3
-CFLAGS="-fsanitize=thread -fPIE -O1 -g -Wall"
-LDFLAGS="-pie -pthread -ldl -lrt -lm -Wl,--whole-archive $TSAN_DIR/rtl/libtsan.a -Wl,--no-whole-archive"
+CFLAGS="-fsanitize=thread -O2 -g -Wall"
+LDFLAGS="-pthread -ldl -lrt -lm -Wl,--whole-archive $TSAN_DIR/rtl/libtsan.a -Wl,--no-whole-archive"
test_file() {
SRC=$1
More information about the llvm-commits
mailing list