Skip to content

Commit 0074872

Browse files
authored
Use isSPIBuild to avoid upstream build platform version issue (#4)
1 parent 83aafcc commit 0074872

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ let buildForDarwinPlatform = envEnable("OPENSWIFTUI_BUILD_FOR_DARWIN_PLATFORM",
2323
let buildForDarwinPlatform = envEnable("OPENSWIFTUI_BUILD_FOR_DARWIN_PLATFORM")
2424
#endif
2525

26-
2726
// https://github.com/SwiftPackageIndex/SwiftPackageIndex-Server/issues/3061#issuecomment-2118821061
2827
// By-pass https://github.com/swiftlang/swift-package-manager/issues/7580
2928
let isSPIDocGenerationBuild = envEnable("SPI_GENERATE_DOCS", default: false)
29+
let isSPIBuild = envEnable("SPI_BUILD")
3030

3131
// MARK: - Env and Config
3232

@@ -125,7 +125,7 @@ let package = Package(
125125

126126
let useLocalDeps = envEnable("OPENBOX_USE_LOCAL_DEPS")
127127

128-
let renderBoxCondtion = envEnable("OPENBOX_RENDERBOX", default: buildForDarwinPlatform && !isSPIDocGenerationBuild )
128+
let renderBoxCondtion = envEnable("OPENBOX_RENDERBOX", default: buildForDarwinPlatform && !isSPIBuild )
129129

130130
if renderBoxCondtion {
131131
let privateFrameworkRepo: Package.Dependency

0 commit comments

Comments
 (0)