Skip to content

Filter unsupported -Wp,-U preprocessor args for zig cc#420

Merged
messense merged 2 commits intomainfrom
fix-wp-u-fortify-source
Feb 18, 2026
Merged

Filter unsupported -Wp,-U preprocessor args for zig cc#420
messense merged 2 commits intomainfrom
fix-wp-u-fortify-source

Conversation

@messense
Copy link
Member

zig cc doesn't support the -Wp,-U pass-through form (e.g. -Wp,-U_FORTIFY_SOURCE added by CMake). Strip these args in filter_linker_arg to fix builds of crates like aws-lc-sys that use CMake internally.

zig cc doesn't support the `-Wp,-U` pass-through form (e.g. `-Wp,-U_FORTIFY_SOURCE`
added by CMake). Strip these args in `filter_linker_arg` to fix builds of crates
like `aws-lc-sys` that use CMake internally.
@messense messense force-pushed the fix-wp-u-fortify-source branch 2 times, most recently from c175295 to c8b127c Compare February 18, 2026 08:04
@messense messense force-pushed the fix-wp-u-fortify-source branch from c8b127c to 391242d Compare February 18, 2026 08:05
@messense messense merged commit 683ffcc into main Feb 18, 2026
49 checks passed
@messense messense deleted the fix-wp-u-fortify-source branch February 18, 2026 08:37
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.

Explicitly specifying aarch64-apple-darwin target fails to build aws-lc-sys on MacOS

1 participant

Comments