File tree Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Expand file tree Collapse file tree 2 files changed +12
-4
lines changed Original file line number Diff line number Diff line change 1
- // RUN: %target-jit-run -interpret %s | %FileCheck %s -check-prefix=CHECK-NONE
2
- // RUN: %target-jit-run -interpret %s -Onone -g | %FileCheck %s -check-prefix=CHECK-NONE
3
- // RUN: %target-jit-run -interpret %s -Onone -g -- | %FileCheck %s -check-prefix=CHECK-NONE
4
- // RUN: %target-jit-run -interpret %s -Onone -g -- a b c | %FileCheck %s -check-prefix=CHECK-THREE
1
+ // RUN: %target-jit-run %s | %FileCheck %s -check-prefix=CHECK-NONE
2
+ // RUN: %target-jit-run %s -Onone -g | %FileCheck %s -check-prefix=CHECK-NONE
3
+ // RUN: %target-jit-run %s -Onone -g -- | %FileCheck %s -check-prefix=CHECK-NONE
4
+ // RUN: %target-jit-run %s -Onone -g -- a b c | %FileCheck %s -check-prefix=CHECK-THREE
5
5
6
6
// REQUIRES: swift_interpreter
7
7
Original file line number Diff line number Diff line change @@ -1885,6 +1885,14 @@ if not kIsWindows:
1885
1885
"SIMCTL_CHILD_DYLD_LIBRARY_PATH='{0}' " # Simulator option
1886
1886
.format (all_stdlib_path , libdispatch_path )) + config .target_run
1887
1887
1888
+ # When running with the JIT on Darwin, force the usage of the just built stdlib
1889
+ # when running the frontend. This is because we currently JIT in process
1890
+ # resulting in weirdness around swift-frontend wanting to link against the host
1891
+ # stdlib and the exec swift code wanting to link against the target stdlib. For
1892
+ # now, we work around this by just saying in that case we will force
1893
+ # swift-frontend to use the just built runtime so we are consistent. The only
1894
+ # potential problem is that a bug in the just built runtime may now cause these
1895
+ # tests to fail.
1888
1896
subst_target_jit_prefix = ""
1889
1897
if platform .system () == 'Darwin' and config .target_run :
1890
1898
subst_target_jit_prefix = config .target_run
You can’t perform that action at this time.
0 commit comments