Index: compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc =================================================================== --- compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc +++ compiler-rt/trunk/test/asan/TestCases/initialization-bug.cc @@ -1,6 +1,6 @@ // Test to make sure basic initialization order errors are caught. -// RUN: %clangxx_asan -O0 %s %p/Helpers/initialization-bug-extra2.cc -o %t-INIT-ORDER-EXE +// RUN: %clangxx_asan %macos_min_target_10_11 -O0 %s %p/Helpers/initialization-bug-extra2.cc -o %t-INIT-ORDER-EXE // RUN: %env_asan_opts=check_initialization_order=true not %run %t-INIT-ORDER-EXE 2>&1 | FileCheck %s // Do not test with optimization -- the error may be optimized away. Index: compiler-rt/trunk/test/lit.common.cfg =================================================================== --- compiler-rt/trunk/test/lit.common.cfg +++ compiler-rt/trunk/test/lit.common.cfg @@ -141,6 +141,10 @@ except: pass + config.substitutions.append( ("%macos_min_target_10_11", "-mmacosx-version-min=10.11") ) +else: + config.substitutions.append( ("%macos_min_target_10_11", "") ) + sancovcc_path = os.path.join(llvm_tools_dir, "sancov") if os.path.exists(sancovcc_path): config.available_features.add("has_sancovcc")