File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
// RUN: %target-swift-frontend -mergeable-symbols -num-threads 2 -O -c -emit-module -o %t/MyModule.o %t/MyModule.swift -enable-experimental-feature Embedded -parse-as-library
5
5
// RUN: %target-swift-frontend -mergeable-symbols -num-threads 2 -O -c -o %t/MainA.o -o %t/MainB.o %t/MainA.swift %t/MainB.swift -I %t -enable-experimental-feature Embedded -parse-as-library
6
- // RUN: %target-clang %linux_rng_support_c_if_needed %t/MainA.o %t/MainB.o %t/MyModule.o -o %t/a.out
6
+ // RUN: %target-embedded-link %t/MainA.o %t/MainB.o %t/MyModule.o -o %t/a.out
7
7
// RUN: %target-run %t/a.out | %FileCheck %s
8
8
9
9
// REQUIRES: swift_in_compiler
Original file line number Diff line number Diff line change @@ -4,6 +4,7 @@ config.substitutions = list(config.substitutions)
4
4
# A handful of test setup tweaks that we want for *all* Embedded Swift tests (i.e. all tests in this directory):
5
5
6
6
# (1) When targeting macOS, raise the deployment target to macOS 14.0 (from the default 13.0)
7
+ config.target_clang = config.target_clang.replace(" -apple-macosx13.0" , " -apple-macos14" )
7
8
if config.target_sdk_name == ' macosx' :
8
9
def do_fixup(key, value):
9
10
if isinstance(value, str):
@@ -31,6 +32,6 @@ if 'SWIFT_AVOID_WARNING_USING_OLD_DRIVER' in config.environment: del config.envi
31
32
32
33
# (5) Provide some useful substitutions to simplify writing tests that work across platforms (macOS, Linux, etc.)
33
34
if " OS=linux-gnu" in config.available_features:
34
- config.substitutions.append((" %linux_rng_support_c_if_needed " , " -x c %S/Inputs/linux-rng-support.c" ))
35
+ config.substitutions.append((" %target-embedded-link " , config.target_clang + " -x c %S/Inputs/linux-rng-support.c -x none " ))
35
36
else:
36
- config.substitutions.append((" %linux_rng_support_c_if_needed " , " " ))
37
+ config.substitutions.append((" %target-embedded-link " , config.target_clang ))
You can’t perform that action at this time.
0 commit comments