Lines Matching +full:check +full:- +full:clang +full:- +full:python
1 # -*- Python -*-
15 config.name = "lldb-api"
41 subprocess.check_output([config.cmake_cxx_compiler, "-print-resource-dir"])
42 .decode("utf-8")
57 # On macOS, we can't do the DYLD_INSERT_LIBRARIES trick with a shim python
60 # copy of the "real" python to work with.
66 # If we're running in a virtual environment, we have to copy Python into
69 copied_python = os.path.join(sys.prefix, "bin", "copied-python")
71 copied_python = os.path.join(config.lldb_build_directory, "copied-python")
77 # Find the "real" python binary.
88 .decode("utf-8")
94 # Now make sure the copied Python works. The Python in Xcode has a relative
98 subprocess.check_call([copied_python, "-V"])
100 # The copied Python didn't work. Assume we're dealing with the Python
108 # The copied Python works.
115 This allows us to check if the attribute exists before trying to access it."""
122 This is necessary in an incremental build whenever clang changes underneath,
156 # In stand-alone build llvm_shlib_dir specifies LLDB's lib directory while
171 lldb_use_simulator = lit_config.params.get("lldb-run-with-simulator", None)
175 config.available_features.add("lldb-simulator-ios")
178 config.available_features.add("lldb-simulator-watchos")
181 config.available_features.add("lldb-simulator-tvos")
185 # Set a default per-test timeout of 10 minutes. Setting a timeout per test
192 lit_config.warning("Could not set a default per-test timeout. " + errormsg)
200 # Library path may be needed to locate just-built clang and libcxx.
202 dotest_cmd += ["--env", "LLVM_LIBS_DIR=" + config.llvm_libs_dir]
204 # Include path may be needed to locate just-built libcxx.
206 dotest_cmd += ["--env", "LLVM_INCLUDE_DIR=" + config.llvm_include_dir]
210 dotest_cmd += ["--env", "LLVM_TOOLS_DIR=" + config.llvm_tools_dir]
212 # If we have a just-built libcxx, prefer it over the system one.
216 dotest_cmd += ["--libcxx-include-dir", config.libcxx_include_dir]
219 "--libcxx-include-target-dir",
222 dotest_cmd += ["--libcxx-library-dir", config.libcxx_libs_dir]
224 # Forward ASan-specific environment variables to tests, as a test may load an
225 # ASan-ified dylib.
228 dotest_cmd += ["--inferior-env", env_var + "=" + config.environment[env_var]]
231 dotest_cmd += ["--arch", config.test_arch]
234 dotest_cmd += ["--build-dir", config.lldb_build_directory]
238 dotest_cmd += ["--lldb-module-cache-dir", config.lldb_module_cache]
242 dotest_cmd += ["--clang-module-cache-dir", config.clang_module_cache]
245 dotest_cmd += ["--executable", config.lldb_executable]
248 dotest_cmd += ["--compiler", config.test_compiler]
251 dotest_cmd += ["--dsymutil", config.dsymutil]
254 dotest_cmd += ["--make", config.make]
257 dotest_cmd += ["--llvm-tools-dir", config.llvm_tools_dir]
260 dotest_cmd += ["--server", config.server]
263 dotest_cmd += ["--lldb-obj-root", config.lldb_obj_root]
266 dotest_cmd += ["--lldb-libs-dir", config.lldb_libs_dir]
269 dotest_cmd += ["--framework", config.lldb_framework_dir]
271 if "lldb-simulator-ios" in config.available_features:
272 dotest_cmd += ["--apple-sdk", "iphonesimulator", "--platform-name", "ios-simulator"]
273 elif "lldb-simulator-watchos" in config.available_features:
275 "--apple-sdk",
277 "--platform-name",
278 "watchos-simulator",
280 elif "lldb-simulator-tvos" in config.available_features:
282 "--apple-sdk",
284 "--platform-name",
285 "tvos-simulator",
290 dotest_cmd += ["--enable-plugin", plugin]
297 # 3. With `llvm-lit "--param=dotest-args=..."`, which end up in
299 # Check them in this order, so that more specific overrides are visited last.
304 dotest_cmd += ["--platform-url", config.lldb_platform_url]
306 dotest_cmd += ["--platform-working-dir", config.lldb_platform_working_dir]
308 dotest_cmd += ["--sysroot", config.cmake_sysroot]
315 # separator. We use Python's simple lexical analyzer to turn the args into a