Skip to content

Commit 63aade1

Browse files
Update Package.swift
This check needs to happen at an earlier stage than SPI's build system and we've just added a new variable to indicate that things are happening in the context of SPI's processing in general via SPI_PROCESSING.
1 parent b2f42a1 commit 63aade1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ func findJavaHome() -> String {
3232
}
3333

3434

35-
if ProcessInfo.processInfo.environment["SPI_BUILD"] == "1" {
35+
if ProcessInfo.processInfo.environment["SPI_PROCESSING"] == "1" {
3636
// just ignore that we're missing a JAVA_HOME when building in Swift Package Index
3737
return ""
3838
}

0 commit comments

Comments
 (0)