We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 342b5ea commit c7adc8eCopy full SHA for c7adc8e
Package.swift
@@ -31,6 +31,11 @@ func findJavaHome() -> String {
31
return home
32
}
33
34
+
35
+ if ProcessInfo.processInfo.environment["SPI_BUILD"] == "1" {
36
+ // just ignore that we're missing a JAVA_HOME when building in Swift Package Index
37
+ return ""
38
+ }
39
fatalError("Please set the JAVA_HOME environment variable to point to where Java is installed.")
40
41
0 commit comments