From 77930919add52a89db5ccd1b30dd8be17bf7baef Mon Sep 17 00:00:00 2001 From: Richard Smith Date: Tue, 6 Nov 2012 02:31:42 +0000 Subject: Update compiler-rt tests to match flag renaming/deprecation in Clang. llvm-svn: 167434 --- compiler-rt/lib/tsan/lit_tests/lit.cfg | 4 ++-- compiler-rt/lib/tsan/lit_tests/test_output.sh | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'compiler-rt/lib/tsan/lit_tests') diff --git a/compiler-rt/lib/tsan/lit_tests/lit.cfg b/compiler-rt/lib/tsan/lit_tests/lit.cfg index acfc74473b3..3a29edc5102 100644 --- a/compiler-rt/lib/tsan/lit_tests/lit.cfg +++ b/compiler-rt/lib/tsan/lit_tests/lit.cfg @@ -59,9 +59,9 @@ lit.load_config(config, compiler_rt_lit_cfg) # Setup environment variables for running ThreadSanitizer. config.environment['TSAN_OPTIONS'] = "atexit_sleep_ms=0" -# Setup default compiler flags used with -faddress-sanitizer option. +# Setup default compiler flags used with -fsanitize=thread option. # FIXME: Review the set of required flags and check if it can be reduced. -clang_tsan_cflags = ("-fthread-sanitizer " +clang_tsan_cflags = ("-fsanitize=thread " + "-fPIE " + "-fno-builtin " + "-g " diff --git a/compiler-rt/lib/tsan/lit_tests/test_output.sh b/compiler-rt/lib/tsan/lit_tests/test_output.sh index bd8573e41ea..3798ff00039 100755 --- a/compiler-rt/lib/tsan/lit_tests/test_output.sh +++ b/compiler-rt/lib/tsan/lit_tests/test_output.sh @@ -10,7 +10,7 @@ CC=clang CXX=clang++ # TODO: add testing for all of -O0...-O3 -CFLAGS="-fthread-sanitizer -fPIE -O1 -g -fno-builtin -Wall" +CFLAGS="-fsanitize=thread -fPIE -O1 -g -fno-builtin -Wall" LDFLAGS="-pie -lpthread -ldl $ROOTDIR/rtl/libtsan.a" test_file() { -- cgit v1.2.3