Skip to content

Commit 2a433d0

Browse files
committed
Use host triple if remote testing is off
1 parent 8be2b2f commit 2a433d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lldb/test/Shell/helper/toolchain.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,10 @@ def use_support_substitutions(config):
191191
# Set up substitutions for support tools. These tools can be overridden at the CMake
192192
# level (by specifying -DLLDB_LIT_TOOLS_DIR), installed, or as a last resort, we can use
193193
# the just-built version.
194-
host_flags = ["--target=" + config.target_triple]
194+
if config.enable_remote:
195+
host_flags = ["--target=" + config.target_triple]
196+
else:
197+
host_flags = ["--target=" + config.host_triple]
195198
if platform.system() in ["Darwin"]:
196199
try:
197200
out = subprocess.check_output(["xcrun", "--show-sdk-path"]).strip()

0 commit comments

Comments
 (0)