Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(native_image): add static_zlib #73

Closed
wants to merge 4 commits into from
Closed

Conversation

fmeum
Copy link
Collaborator

@fmeum fmeum commented Aug 31, 2023

When provided, the static zlib library will be used when Graal
statically links in zlib.

Make use of `Args` lazy string formatting to save memory.
Also pass in compiler options as repeated flags, not joined on spaces,
to prevent issues when compiler options contain spaces.
`depset` structures should be kept as flat as possible. C++ toolchain
files are also already `depset`s and thus shouldn't be passed into
`tools`.
Instead of relying on the default shell env, get the environment
variables declared by the C++ toolchain. On macOS, additionally use
`apple_support` to pass in `DEVELOPER_DIR`.

Since GraalVM sanitizes the environment, all variables are translated
into `-E` flags.
When provided, the static zlib library will be used when Graal
statically links in zlib.
@fmeum fmeum requested a review from sgammon as a code owner August 31, 2023 13:30
@sonarcloud
Copy link

sonarcloud bot commented Aug 31, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@fmeum
Copy link
Collaborator Author

fmeum commented Aug 31, 2023

Stacked on #70, #71, and #72.

@sgammon
Copy link
Owner

sgammon commented Sep 1, 2023

superseded by #80, see note on #72

@sgammon sgammon closed this Sep 1, 2023
@fmeum fmeum deleted the hermetic-zlib branch September 1, 2023 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants