Skip to content

Commit 094c04e

Browse files
committedJun 4, 2015
[Sanitizers] Add *SAN_OPTIONS to possibly_dangerous_env_vars
Summary: This way, if they're set when running ninja check-ubsan (or another sanitizer), they get cleared before we start invoking the programs. Reviewers: samsonov, kcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D10229 llvm-svn: 238991
1 parent a8ae392 commit 094c04e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎compiler-rt/test/lit.common.cfg

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ else:
3838
config.available_features.add(compiler_id)
3939

4040
# Clear some environment variables that might affect Clang.
41-
possibly_dangerous_env_vars = ['COMPILER_PATH', 'RC_DEBUG_OPTIONS',
41+
possibly_dangerous_env_vars = ['ASAN_OPTIONS', 'DFSAN_OPTIONS', 'LSAN_OPTIONS',
42+
'MSAN_OPTIONS', 'UBSAN_OPTIONS',
43+
'COMPILER_PATH', 'RC_DEBUG_OPTIONS',
4244
'CINDEXTEST_PREAMBLE_FILE', 'LIBRARY_PATH',
4345
'CPATH', 'C_INCLUDE_PATH', 'CPLUS_INCLUDE_PATH',
4446
'OBJC_INCLUDE_PATH', 'OBJCPLUS_INCLUDE_PATH',

0 commit comments

Comments
 (0)
Please sign in to comment.