Skip to content

Commit 9fb17f2

Browse files
author
Joe Shajrawi
committed
lit.cfg: fix a bug in simulator target
1 parent 3586952 commit 9fb17f2

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

test/lit.cfg

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -642,6 +642,8 @@ def use_interpreter_for_simple_runs():
642642

643643
target_specific_module_triple = config.variant_triple
644644

645+
config.target_run = ""
646+
645647
if run_vendor == 'apple':
646648
target_specific_module_triple = '{}-apple-{}'.format(
647649
{ 'aarch64': 'arm64', 'amd64': 'x86_64' }.get(run_cpu, run_cpu),
@@ -1356,7 +1358,8 @@ if not kIsWindows:
13561358
"/usr/bin/env "
13571359
"DYLD_LIBRARY_PATH='{0}' " # Apple option
13581360
"LD_LIBRARY_PATH='{0}' " # Linux option
1359-
.format(target_stdlib_path))
1361+
"SIMCTL_CHILD_DYLD_LIBRARY_PATH='{0}' " # Simulator option
1362+
.format(target_stdlib_path)) + config.target_run
13601363
else:
13611364
os_stdlib_path = ''
13621365
if run_vendor == 'apple':
@@ -1368,7 +1371,8 @@ if not kIsWindows:
13681371
"/usr/bin/env "
13691372
"DYLD_LIBRARY_PATH='{0}' " # Apple option
13701373
"LD_LIBRARY_PATH='{0}' " # Linux option
1371-
.format(all_stdlib_path))
1374+
"SIMCTL_CHILD_DYLD_LIBRARY_PATH='{0}' " # Simulator option
1375+
.format(all_stdlib_path)) + config.target_run
13721376

13731377
#
13741378
# When changing substitutions, update docs/Testing.rst.

0 commit comments

Comments
 (0)