mirror of
https://github.com/apple/pkl.git
synced 2026-01-11 22:30:54 +01:00
[PR #542] [MERGED] Pass HOMEBREW_* environment variables on through native_image
#612
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/apple/pkl/pull/542
Author: @holzensp
Created: 6/18/2024
Status: ✅ Merged
Merged: 6/26/2024
Merged by: @holzensp
Base:
main← Head:homebrewTransparancy📝 Commits (1)
069ad2dPassHOMEBREW_*environment variables on throughnative_image📊 Changes
1 file changed (+2 additions, -0 deletions)
View changed files
📝
pkl-cli/pkl-cli.gradle.kts(+2 -0)📄 Description
We currently have to use
NATIVE_IMAGE_DEPRECATED_BUILDER_SANITATIONto let builds pass in Homebrew. This is becausenative-imageruns its child processes (such as the platform-dependent C compiler) in a "clean" environment. In Homebrew, such compilers (clang,gcc, etc) are wrapper scripts that first check the Homebrew environment is intact.GraalVM folks have warned that
NATIVE_IMAGE_DEPRECATED_BUILDER_SANITATIONwill go away.This PR preserves all environment variables starting with
HOMEBREW_for the innernative-imageenvironment.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.