summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/tsan/lit_tests
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2013-09-11 11:06:06 +0000
committerAlexey Samsonov <samsonov@google.com>2013-09-11 11:06:06 +0000
commit4a2447fd81768ce119fb0626671065049fa7840d (patch)
tree326fcc87cc11dfe5bd6d417386b132118450bd92 /compiler-rt/lib/tsan/lit_tests
parentf5bd937bc4ddae9096adf825c96fc1583087bb8b (diff)
downloadbcm5719-llvm-4a2447fd81768ce119fb0626671065049fa7840d.tar.gz
bcm5719-llvm-4a2447fd81768ce119fb0626671065049fa7840d.zip
[TSan] Use --whole-archive around TSan runtime in old TSan makefiles. Fix a Go build
llvm-svn: 190513
Diffstat (limited to 'compiler-rt/lib/tsan/lit_tests')
-rwxr-xr-xcompiler-rt/lib/tsan/lit_tests/test_output.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/lit_tests/test_output.sh b/compiler-rt/lib/tsan/lit_tests/test_output.sh
index f1f1e4bcd17..79e773aa2c9 100755
--- a/compiler-rt/lib/tsan/lit_tests/test_output.sh
+++ b/compiler-rt/lib/tsan/lit_tests/test_output.sh
@@ -13,7 +13,7 @@ BLACKLIST=$ROOTDIR/lit_tests/Helpers/blacklist.txt
# TODO: add testing for all of -O0...-O3
CFLAGS="-fsanitize=thread -fsanitize-blacklist=$BLACKLIST -fPIE -O1 -g -Wall"
-LDFLAGS="-pie -lpthread -ldl -lrt $ROOTDIR/rtl/libtsan.a"
+LDFLAGS="-pie -lpthread -ldl -lrt -Wl,--whole-archive $ROOTDIR/rtl/libtsan.a -Wl,--no-whole-archive"
test_file() {
SRC=$1
OpenPOWER on IntegriCloud