File tree 18 files changed +34
-34
lines changed
18 files changed +34
-34
lines changed Original file line number Diff line number Diff line change @@ -283,8 +283,8 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB AND SWIFT_SHOULD_BUILD_EMBEDDED_CONCURRENC
283
283
endif ()
284
284
285
285
if ("${mod} " MATCHES "-macos$" )
286
- set (extra_c_compile_flags -D__MACH__ -D__APPLE__ - ffreestanding -stdlib=libc++)
287
- set (extra_swift_compile_flags -Xcc -D__MACH__ -Xcc -D__APPLE__ -Xcc - ffreestanding)
286
+ set (extra_c_compile_flags -ffreestanding -stdlib=libc++)
287
+ set (extra_swift_compile_flags -Xcc -ffreestanding)
288
288
endif ()
289
289
290
290
elseif (SWIFT_HOST_VARIANT STREQUAL "wasi" )
Original file line number Diff line number Diff line change @@ -115,9 +115,9 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
115
115
Darwin.swift.gyb
116
116
117
117
SWIFT_COMPILE_FLAGS
118
- -Xcc -D__MACH__ -Xcc -D__APPLE__ -Xcc - ffreestanding -enable-experimental-feature Embedded
118
+ -Xcc -ffreestanding -enable-experimental-feature Embedded
119
119
C_COMPILE_FLAGS
120
- -D__MACH__ -D__APPLE__ - ffreestanding
120
+ -ffreestanding
121
121
MODULE_DIR "${CMAKE_BINARY_DIR} /lib/swift/embedded"
122
122
SDK "embedded"
123
123
ARCHITECTURE "${arch} "
Original file line number Diff line number Diff line change @@ -171,7 +171,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
171
171
172
172
SWIFT_COMPILE_FLAGS
173
173
${SWIFT_SYNCHRNOIZATION_SWIFT_FLAGS}
174
- -Xcc -D__MACH__ -Xcc -D__APPLE__ -Xcc - ffreestanding -enable-experimental-feature Embedded
174
+ -Xcc -ffreestanding -enable-experimental-feature Embedded
175
175
176
176
MODULE_DIR "${CMAKE_BINARY_DIR} /lib/swift/embedded"
177
177
SDK "embedded"
Original file line number Diff line number Diff line change @@ -42,10 +42,10 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
42
42
Volatile.swift
43
43
44
44
SWIFT_COMPILE_FLAGS
45
- -Xcc -D__MACH__ -Xcc -D__APPLE__ -Xcc - ffreestanding -enable-experimental-feature Embedded
45
+ -Xcc -ffreestanding -enable-experimental-feature Embedded
46
46
-parse-stdlib
47
47
C_COMPILE_FLAGS
48
- -D__MACH__ -D__APPLE__ - ffreestanding
48
+ -ffreestanding
49
49
MODULE_DIR "${CMAKE_BINARY_DIR} /lib/swift/embedded"
50
50
SDK "embedded"
51
51
ARCHITECTURE "${arch} "
Original file line number Diff line number Diff line change @@ -516,7 +516,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
516
516
${SWIFTLIB_EMBEDDED_SOURCES}
517
517
GYB_SOURCES ${SWIFTLIB_EMBEDDED_GYB_SOURCES}
518
518
SWIFT_COMPILE_FLAGS
519
- ${swift_stdlib_compile_flags} -Xcc -D__MACH__ -Xcc -D__APPLE__ -Xcc - ffreestanding -enable-experimental-feature Embedded
519
+ ${swift_stdlib_compile_flags} -Xcc -ffreestanding -enable-experimental-feature Embedded
520
520
-Xfrontend -enable-ossa-modules
521
521
MODULE_DIR "${CMAKE_BINARY_DIR} /lib/swift/embedded"
522
522
SDK "embedded"
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
21
21
if (SWIFT_HOST_VARIANT STREQUAL "linux" )
22
22
set (extra_c_compile_flags -ffreestanding)
23
23
elseif (SWIFT_HOST_VARIANT STREQUAL "macosx" )
24
- set (extra_c_compile_flags -D__MACH__ -D__APPLE__ - ffreestanding)
24
+ set (extra_c_compile_flags -ffreestanding)
25
25
endif ()
26
26
list (APPEND extra_c_compile_flags -nostdinc++)
27
27
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
- // RUN: %target-swift-frontend -target arm64-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
1
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
+ // RUN: %target-swift-frontend -target arm64-apple-none-macho -module-name main -parse-as-library -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
3
3
// REQUIRES: swift_in_compiler
4
4
// REQUIRES: CODEGENERATOR=ARM
5
5
// REQUIRES: embedded_stdlib_cross_compiling
Original file line number Diff line number Diff line change 1
1
// RUN: %target-swift-emit-ir %s -enable-experimental-feature Embedded -no-allocations
2
2
3
- // RUN: %target-swift-emit-ir -target armv7-apple-none-macho -no-allocations -Xcc -D__MACH__ %s -enable-experimental-feature Embedded
4
- // RUN: %target-swift-emit-ir -target arm64-apple-none-macho -no-allocations -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ %s -enable-experimental-feature Embedded
3
+ // RUN: %target-swift-emit-ir -target armv7-apple-none-macho -no-allocations %s -enable-experimental-feature Embedded
4
+ // RUN: %target-swift-emit-ir -target arm64-apple-none-macho -no-allocations %s -enable-experimental-feature Embedded
5
5
6
6
// REQUIRES: swift_in_compiler
7
7
// REQUIRES: optimized_stdlib
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
- // RUN: %target-swift-frontend -target arm64-apple-none-macho -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
1
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
+ // RUN: %target-swift-frontend -target arm64-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
3
3
4
4
// REQUIRES: swift_in_compiler
5
5
// REQUIRES: optimized_stdlib
Original file line number Diff line number Diff line change 3
3
// code, but in the embedded Swift's runtime that's somewhat reasonable thing
4
4
// to do (but is to be avoided because of this).
5
5
6
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -assert-config Debug -Osize -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
7
- // RUN: %target-swift-frontend -target arm64-apple-none-macho -assert-config Debug -Osize -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
6
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -assert-config Debug -Osize -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
7
+ // RUN: %target-swift-frontend -target arm64-apple-none-macho -assert-config Debug -Osize -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
8
8
9
9
// REQUIRES: swift_in_compiler
10
10
// REQUIRES: optimized_stdlib
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target arm64e-apple-none-macho -enable-experimental-feature Embedded -emit-ir %s -o - -Xcc -D__APPLE__ -Xcc -D__MACH__ | %FileCheck %s
2
- // RUN: %target-swift-frontend -target arm64e-apple-macos14 -enable-experimental-feature Embedded -emit-ir %s -o - -Xcc -D__APPLE__ -Xcc -D__MACH__ | %FileCheck %s
1
+ // RUN: %target-swift-frontend -target arm64e-apple-none-macho -enable-experimental-feature Embedded -emit-ir %s -o - | %FileCheck %s
2
+ // RUN: %target-swift-frontend -target arm64e-apple-macos14 -enable-experimental-feature Embedded -emit-ir %s -o - | %FileCheck %s
3
3
4
4
// REQUIRES: swift_in_compiler
5
5
// REQUIRES: OS=macosx
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
- // RUN: %target-swift-frontend -target arm64-apple-none-macho -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
1
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
+ // RUN: %target-swift-frontend -target arm64-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
3
3
4
4
// REQUIRES: swift_in_compiler
5
5
// REQUIRES: optimized_stdlib
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
- // RUN: %target-swift-frontend -target arm64-apple-none-macho -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
1
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
+ // RUN: %target-swift-frontend -target arm64-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
3
3
4
4
// REQUIRES: swift_in_compiler
5
5
// REQUIRES: CODEGENERATOR=ARM
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
- // RUN: %target-swift-frontend -target arm64-apple-none-macho -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
1
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
+ // RUN: %target-swift-frontend -target arm64-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
3
3
4
4
// REQUIRES: swift_in_compiler
5
5
// REQUIRES: optimized_stdlib
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
- // RUN: %target-swift-frontend -target arm64-apple-none-macho -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
1
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
+ // RUN: %target-swift-frontend -target arm64-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
3
3
4
4
// REQUIRES: swift_in_compiler
5
5
// REQUIRES: optimized_stdlib
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
- // RUN: %target-swift-frontend -target arm64-apple-none-macho -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
1
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
+ // RUN: %target-swift-frontend -target arm64-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
3
3
4
4
// REQUIRES: swift_in_compiler
5
5
// REQUIRES: optimized_stdlib
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded
2
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded -O
3
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded -Osize
1
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -emit-ir %s -enable-experimental-feature Embedded
2
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -emit-ir %s -enable-experimental-feature Embedded -O
3
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -module-name main -parse-as-library -emit-ir %s -enable-experimental-feature Embedded -Osize
4
4
5
5
// REQUIRES: swift_in_compiler
6
6
// REQUIRES: CODEGENERATOR=ARM
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -target armv7-apple-none-macho -Xcc -D__MACH__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
- // RUN: %target-swift-frontend -target arm64-apple-none-macho -Xcc -D__MACH__ -Xcc -D__arm64__ -Xcc -D__APPLE__ - emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
1
+ // RUN: %target-swift-frontend -target armv7-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
2
+ // RUN: %target-swift-frontend -target arm64-apple-none-macho -emit-ir %s -enable-experimental-feature Embedded | %FileCheck %s
3
3
4
4
// REQUIRES: swift_in_compiler
5
5
// REQUIRES: optimized_stdlib
You can’t perform that action at this time.
0 commit comments