From: Dmitry Vyukov Date: Wed, 19 Nov 2014 10:45:53 +0000 (+0000) Subject: tsan: don't add -pie when compiling tests X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6eef1d22596fede50783921751ac2548719b516d;p=platform%2Fupstream%2Fllvm.git tsan: don't add -pie when compiling tests driver should add it as necessary llvm-svn: 222343 --- diff --git a/compiler-rt/test/tsan/test_output.sh b/compiler-rt/test/tsan/test_output.sh index f5b75ed..bce0fe8 100755 --- a/compiler-rt/test/tsan/test_output.sh +++ b/compiler-rt/test/tsan/test_output.sh @@ -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