mirror of
https://github.com/apple/pkl.git
synced 2026-03-22 09:09:15 +01:00
Pass HOMEBREW_* environment variables on through native_image
This commit is contained in:
committed by
Philip K.F. Hölzenspies
parent
64bfcfdc4f
commit
3b786878fd
@@ -241,6 +241,8 @@ fun Exec.configureExecutable(
|
||||
val processors = Runtime.getRuntime().availableProcessors() /
|
||||
if (buildInfo.os.isMacOsX && !buildInfo.isCiBuild) 4 else 1
|
||||
add("-J-XX:ActiveProcessorCount=${processors}")
|
||||
// Pass through all `HOMEBREW_` prefixed environment variables to allow build with shimmed tools.
|
||||
addAll(environment.keys.filter { it.startsWith("HOMEBREW_") }.map { "-E$it" })
|
||||
addAll(extraArgs)
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user