Skip to content

Commit 7dbfaa2

Browse files
committed
[benchmark] Change the swiftpm pm package to conditional ObjectiveCNoBridgingStubs on Xcode and SWIFT_PACKAGE.
Otherwise while xcrun swift build will work, a generate xcodeproject from swiftpm will not.
1 parent d035caf commit 7dbfaa2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

benchmark/utils/main.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ import NopDeinit
9292
import ObjectAllocation
9393
import ObjectiveCBridging
9494
import ObjectiveCBridgingStubs
95-
#if !SWIFT_PACKAGE
95+
#if !(SWIFT_PACKAGE || Xcode)
9696
import ObjectiveCNoBridgingStubs
9797
#endif
9898
import ObserverClosure
@@ -254,7 +254,7 @@ registerBenchmark(NopDeinit)
254254
registerBenchmark(ObjectAllocation)
255255
registerBenchmark(ObjectiveCBridging)
256256
registerBenchmark(ObjectiveCBridgingStubs)
257-
#if !SWIFT_PACKAGE
257+
#if !(SWIFT_PACKAGE || Xcode)
258258
registerBenchmark(ObjectiveCNoBridgingStubs)
259259
#endif
260260
registerBenchmark(ObserverClosure)

0 commit comments

Comments
 (0)