Skip to content

feat(native_image): add static_zlib#73

Closed
fmeum wants to merge 4 commits intosgammon:mainfrom
fmeum:hermetic-zlib
Closed

feat(native_image): add static_zlib#73
fmeum wants to merge 4 commits intosgammon:mainfrom
fmeum:hermetic-zlib

Conversation

@fmeum
Copy link
Copy Markdown
Collaborator

@fmeum fmeum commented Aug 31, 2023

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

fmeum added 4 commits August 31, 2023 08:54
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
@sonarqubecloud
Copy link
Copy Markdown

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
Copy Markdown
Collaborator Author

fmeum commented Aug 31, 2023

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

@sgammon
Copy link
Copy Markdown
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