diff options
| author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-06 02:31:42 +0000 |
|---|---|---|
| committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-11-06 02:31:42 +0000 |
| commit | 77930919add52a89db5ccd1b30dd8be17bf7baef (patch) | |
| tree | cc4b6f1394b6f4f884db62cff8d38af28020c46a /compiler-rt/lib/tsan/lit_tests | |
| parent | c86a114409b198065cb9927a84c7701a0fa3af56 (diff) | |
| download | bcm5719-llvm-77930919add52a89db5ccd1b30dd8be17bf7baef.tar.gz bcm5719-llvm-77930919add52a89db5ccd1b30dd8be17bf7baef.zip | |
Update compiler-rt tests to match flag renaming/deprecation in Clang.
llvm-svn: 167434
Diffstat (limited to 'compiler-rt/lib/tsan/lit_tests')
| -rw-r--r-- | compiler-rt/lib/tsan/lit_tests/lit.cfg | 4 | ||||
| -rwxr-xr-x | compiler-rt/lib/tsan/lit_tests/test_output.sh | 2 |
2 files changed, 3 insertions, 3 deletions
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() { |

