================
@@ -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
_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to