Skip to content

Commit a9219a8

Browse files
committed
Avoid accidentally enabling C shims within the test target
1 parent 8dd81ae commit a9219a8

File tree

6 files changed

+9
-5
lines changed

6 files changed

+9
-5
lines changed

Package.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ let package = Package(
8686
"Basics/BasicAtomicUInt8Tests.swift.gyb",
8787
"Basics/BasicAtomicUIntTests.swift.gyb",
8888
"Basics/BasicAtomicUnmanagedTests.swift.gyb",
89-
]
89+
],
90+
swiftSettings: _swiftSettings
9091
),
9192
]
9293
)

[email protected]

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ let package = Package(
8080
"Basics/BasicAtomicUInt8Tests.swift.gyb",
8181
"Basics/BasicAtomicUIntTests.swift.gyb",
8282
"Basics/BasicAtomicUnmanagedTests.swift.gyb",
83-
]
83+
],
84+
swiftSettings: _swiftSettings
8485
),
8586
]
8687
)

[email protected]

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ let package = Package(
8080
"Basics/BasicAtomicUInt8Tests.swift.gyb",
8181
"Basics/BasicAtomicUIntTests.swift.gyb",
8282
"Basics/BasicAtomicUnmanagedTests.swift.gyb",
83-
]
83+
],
84+
swiftSettings: _swiftSettings
8485
),
8586
]
8687
)

[email protected]

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ let package = Package(
8080
"Basics/BasicAtomicUInt8Tests.swift.gyb",
8181
"Basics/BasicAtomicUIntTests.swift.gyb",
8282
"Basics/BasicAtomicUnmanagedTests.swift.gyb",
83-
]
83+
],
84+
swiftSettings: _swiftSettings
8485
),
8586
]
8687
)

Xcode/Atomics.xcconfig

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ DYLIB_COMPATIBILITY_VERSION = $(CURRENT_PROJECT_VERSION)
2929
DYLIB_CURRENT_VERSION = $(CURRENT_PROJECT_VERSION)
3030

3131
OTHER_SWIFT_FLAGS = $(inherited) -enable-experimental-feature BuiltinModule
32-
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) ATOMICS_SINGLE_MODULE=1 ATOMICS_NATIVE_BUILTINS=1
3332

3433
INSTALL_PATH = $(LOCAL_LIBRARY_DIR)/Frameworks
3534
SKIP_INSTALL = YES

Xcode/Shared.xcconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ SWIFT_VERSION = 5.5
1515
ONLY_ACTIVE_ARCH[config=Debug] = YES
1616

1717
SWIFT_ACTIVE_COMPILATION_CONDITIONS = $(inherited) ATOMICS_SINGLE_MODULE ATOMICS_NATIVE_BUILTINS
18+
GCC_PREPROCESSOR_DEFINITIONS = $(inherited) ATOMICS_SINGLE_MODULE=1 ATOMICS_NATIVE_BUILTINS=1
1819

1920
SWIFT_COMPILATION_MODE[config=Release] = wholemodule
2021
SWIFT_COMPILATION_MODE[config=Debug] = singlefile

0 commit comments

Comments
 (0)