Lines Matching +full:make +full:- +full:test +full:- +full:osx
1 # -*- Python -*-
3 # Configuration file for 'lit' test runner.
4 # This file contains common rules for various compiler-rt testsuites.
14 # Setup test format. Use bash on Unix and the lit shell on Windows.
28 config.cxx_mode_flags = ["--driver-mode=g++"]
33 config.debug_info_flags = ["-gline-tables-only"]
35 config.debug_info_flags.append("-gcodeview")
37 config.cxx_mode_flags = ["-x c++"]
38 config.debug_info_flags = ["-g"]
71 # Make sure we only try to use it when targetting Windows.
72 if platform.system() == 'Windows' and '-win' in config.target_triple:
75 if re.match(r'^x86_64.*-linux', config.target_triple):
76 config.available_features.add("x86_64-linux")
87 # Define CHECK-%os to check for OS-dependent output.
88 config.substitutions.append( ('CHECK-%os', ("CHECK-" + config.host_os)))
92 # does not crash but exits with a non-zero exit code. We ought to merge
93 # KillTheDoctor and not --crash to make the latter more useful and remove the
97 config.expect_crash = "not --crash "
103 config.available_features.add(target_arch + '-target-arch')
105 config.available_features.add('x86-target-arch')
109 config.available_features.add('compiler-rt-optimized')
119 config.available_features.add('can-symbolize')
125 osx_version = subprocess.check_output(["sw_vers", "-productVersion"])
128 config.available_features.add('osx-autointerception')
129 config.available_features.add('osx-ld64-live_support')
131 # The ASAN initialization-bug.cc test should XFAIL on OS X systems
132 # older than El Capitan. By marking the test as being unsupported with
133 # this "feature", we can pass the test on newer OS X versions and other
135 config.available_features.add('osx-no-ld64-live_support')
151 ld_cmd = subprocess.Popen([config.gold_executable, '--help'], stdout = subprocess.PIPE)
155 if not '-plugin' in ld_out:
161 return os.path.exists(os.path.join(config.llvm_tools_dir, 'lld-link.exe'))
170 config.lto_flags = ["-fuse-ld=gold"]
174 config.lto_flags = ["-fuse-ld=lld"]
178 # Ask llvm-config about assertion mode.
181 [os.path.join(config.llvm_tools_dir, 'llvm-config'), '--assertion-mode'],
185 print("Could not find llvm-config in " + llvm_tools_dir)