Lines Matching +full:libcxx +full:- +full:build
1 # -*- Python -*-
15 config.name = "lldb-api"
41 subprocess.check_output([config.cmake_cxx_compiler, "-print-resource-dir"])
42 .decode("utf-8")
69 copied_python = os.path.join(sys.prefix, "bin", "copied-python")
71 copied_python = os.path.join(config.lldb_build_directory, "copied-python")
88 .decode("utf-8")
98 subprocess.check_call([copied_python, "-V"])
120 """Clean the module caches in the test build directory.
122 This is necessary in an incremental build whenever clang changes underneath,
153 # Shared library build of LLVM may require LD_LIBRARY_PATH or equivalent.
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)
194 # Build dotest command.
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
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]
338 # Transfer some environment variables into the tests on Windows build host.