File tree Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Expand file tree Collapse file tree 3 files changed +12
-9
lines changed Original file line number Diff line number Diff line change @@ -216,6 +216,8 @@ normalize_boolean_spelling(SWIFT_ENABLE_BACKTRACING)
216
216
normalize_boolean_spelling (SWIFT_BUILD_SWIFT_SYNTAX )
217
217
normalize_boolean_spelling (SWIFT_ENABLE_SYNCHRONIZATION )
218
218
normalize_boolean_spelling (SWIFT_ENABLE_VOLATILE )
219
+ normalize_boolean_spelling (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB )
220
+ normalize_boolean_spelling (SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB_CROSS_COMPILING )
219
221
normalize_boolean_spelling (SWIFT_BUILD_REMOTE_MIRROR )
220
222
is_build_type_optimized ("${SWIFT_STDLIB_BUILD_TYPE} " SWIFT_OPTIMIZED )
221
223
Original file line number Diff line number Diff line change 1
1
// RUN: %empty-directory(%t)
2
2
// RUN: split-file %s %t
3
3
4
- // RUN: %target-swift-frontend -target armv7em-none-none-eabi - enable-experimental-feature Embedded -c -I%t -parse-as-library %t/MyModuleA.swift -o %t/MyModuleA.o -emit-module -emit-module-path %t/MyModuleA.swiftmodule -emit-empty-object-file
5
- // RUN: %target-swift-frontend -target armv7em-none-none-eabi - enable-experimental-feature Embedded -c -I%t -parse-as-library %t/MyModuleB.swift -o %t/MyModuleB.o -emit-module -emit-module-path %t/MyModuleB.swiftmodule -emit-empty-object-file
6
- // RUN: %target-swift-frontend -target armv7em-none-none-eabi - enable-experimental-feature Embedded -c -I%t -parse-as-library %t/MyModuleC.swift -o %t/MyModuleC.o -emit-module -emit-module-path %t/MyModuleC.swiftmodule -emit-empty-object-file
7
- // RUN: %target-swift-frontend -target armv7em-none-none-eabi - enable-experimental-feature Embedded -c -I%t %t/Main.swift -o %t/Main.o
4
+ // RUN: %target-swift-frontend -enable-experimental-feature Embedded -c -I%t -parse-as-library %t/MyModuleA.swift -o %t/MyModuleA.o -emit-module -emit-module-path %t/MyModuleA.swiftmodule -emit-empty-object-file
5
+ // RUN: %target-swift-frontend -enable-experimental-feature Embedded -c -I%t -parse-as-library %t/MyModuleB.swift -o %t/MyModuleB.o -emit-module -emit-module-path %t/MyModuleB.swiftmodule -emit-empty-object-file
6
+ // RUN: %target-swift-frontend -enable-experimental-feature Embedded -c -I%t -parse-as-library %t/MyModuleC.swift -o %t/MyModuleC.o -emit-module -emit-module-path %t/MyModuleC.swiftmodule -emit-empty-object-file
7
+ // RUN: %target-swift-frontend -enable-experimental-feature Embedded -c -I%t %t/Main.swift -o %t/Main.o
8
8
// RUN: %target-clang %t/Main.o %t/MyModuleA.o %t/MyModuleB.o %t/MyModuleC.o -o %t/a.out
9
+ // RUN: %target-run %t/a.out
9
10
10
11
// REQUIRES: swift_in_compiler
12
+ // REQUIRES: executable_test
11
13
// REQUIRES: OS=macosx || OS=linux-gnu
12
- // REQUIRES: CODEGENERATOR=ARM
13
- // REQUIRES: embedded_stdlib_cross_compiling
14
14
15
15
//--- MyModuleA.swift
16
16
Original file line number Diff line number Diff line change 1
- // RUN: %target-run-simple-swift(-parse-as-library -Onone -enable-experimental-feature Embedded -runtime-compatibility-version none -wmo -Xfrontend -disable-objc-interop -Xlinker -dead_strip) | %FileCheck %s
2
- // RUN: %target-run-simple-swift(-parse-as-library -O -enable-experimental-feature Embedded -runtime-compatibility-version none -wmo -Xfrontend -disable-objc-interop -Xlinker -dead_strip) | %FileCheck %s
3
- // RUN: %target-run-simple-swift(-parse-as-library -Osize -enable-experimental-feature Embedded -runtime-compatibility-version none -wmo -Xfrontend -disable-objc-interop -Xlinker -dead_strip) | %FileCheck %s
1
+ // RUN: %target-run-simple-swift(-parse-as-library -Onone -enable-experimental-feature Embedded -runtime-compatibility-version none -wmo -Xfrontend -disable-objc-interop -Xlinker -dead_strip -Xlinker %swift_obj_root/lib/swift/embedded/%target-cpu-apple-macos/libswiftUnicodeDataTables.a ) | %FileCheck %s
2
+ // RUN: %target-run-simple-swift(-parse-as-library -O -enable-experimental-feature Embedded -runtime-compatibility-version none -wmo -Xfrontend -disable-objc-interop -Xlinker -dead_strip -Xlinker %swift_obj_root/lib/swift/embedded/%target-cpu-apple-macos/libswiftUnicodeDataTables.a ) | %FileCheck %s
3
+ // RUN: %target-run-simple-swift(-parse-as-library -Osize -enable-experimental-feature Embedded -runtime-compatibility-version none -wmo -Xfrontend -disable-objc-interop -Xlinker -dead_strip -Xlinker %swift_obj_root/lib/swift/embedded/%target-cpu-apple-macos/libswiftUnicodeDataTables.a ) | %FileCheck %s
4
4
5
5
// REQUIRES: swift_in_compiler
6
6
// REQUIRES: executable_test
@@ -17,4 +17,5 @@ struct Main {
17
17
}
18
18
}
19
19
20
+ // CHECK: abc
20
21
// CHECK: OK!
You can’t perform that action at this time.
0 commit comments