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)
216216normalize_boolean_spelling(SWIFT_BUILD_SWIFT_SYNTAX)
217217normalize_boolean_spelling(SWIFT_ENABLE_SYNCHRONIZATION)
218218normalize_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)
219221normalize_boolean_spelling(SWIFT_BUILD_REMOTE_MIRROR)
220222is_build_type_optimized("${SWIFT_STDLIB_BUILD_TYPE} " SWIFT_OPTIMIZED)
221223
Original file line number Diff line number Diff line change 11// RUN: %empty-directory(%t)
22// RUN: split-file %s %t
33
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
88// 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
910
1011// REQUIRES: swift_in_compiler
12+ // REQUIRES: executable_test
1113// REQUIRES: OS=macosx || OS=linux-gnu
12- // REQUIRES: CODEGENERATOR=ARM
13- // REQUIRES: embedded_stdlib_cross_compiling
1414
1515//--- MyModuleA.swift
1616
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
44
55// REQUIRES: swift_in_compiler
66// REQUIRES: executable_test
@@ -17,4 +17,5 @@ struct Main {
1717 }
1818}
1919
20+ // CHECK: abc
2021// CHECK: OK!
You can’t perform that action at this time.
0 commit comments