[ASan/Win] Add a comment about DCL-using-static vs threads
[blocksruntime.git] / test / msan / lit.cfg
blob31436083f989192e8fc41e07a9fc2671026d5b11
1 # -*- Python -*-
3 import os
5 # Setup config name.
6 config.name = 'MemorySanitizer'
8 # Setup source root.
9 config.test_source_root = os.path.dirname(__file__)
11 # Setup default compiler flags used with -fsanitize=memory option.
12 clang_msan_cflags = ["-fsanitize=memory",
13                      "-mno-omit-leaf-frame-pointer",
14                      "-fno-omit-frame-pointer",
15                      "-fno-optimize-sibling-calls",
16                      "-g",
17                      "-m64"]
18 clang_msan_cxxflags = config.cxx_mode_flags + clang_msan_cflags
20 def build_invocation(compile_flags):
21   return " " + " ".join([config.clang] + compile_flags) + " "
23 config.substitutions.append( ("%clang_msan ", build_invocation(clang_msan_cflags)) )
24 config.substitutions.append( ("%clangxx_msan ", build_invocation(clang_msan_cxxflags)) )
26 # Default test suffixes.
27 config.suffixes = ['.c', '.cc', '.cpp']
29 # MemorySanitizer tests are currently supported on Linux only.
30 if config.host_os not in ['Linux']:
31   config.unsupported = True