[Lldb-commits] [lldb] [lldb][rpc] Add sysroot to lldb-rpc-gen test suite invocation (PR #151291)
Chelsea Cassanova via lldb-commits
lldb-commits at lists.llvm.org
Tue Aug 5 16:49:52 PDT 2025
================
@@ -119,6 +119,17 @@ def use_lldb_substitutions(config):
lldb_init = _get_lldb_init_path(config)
+ sysroot_arg = ""
+ if platform.system() in ["Darwin"]:
+ try:
+ out = subprocess.check_output(["xcrun", "--show-sdk-path"]).strip()
----------------
chelcassanova wrote:
That can be done, I see that we expose `cmake_sysroot` in the toolchain file using `"@LLDB_TEST_SYSROOT@" or "@DEFAULT_SYSROOT@"`. If that's not the proper variables then we could also use `CMAKE_OSX_SYSROOT`?
https://github.com/llvm/llvm-project/pull/151291
More information about the lldb-commits
mailing list