-
-
Notifications
You must be signed in to change notification settings - Fork 0
Disable LTO for ZLIB #19
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -64,6 +64,12 @@ if(NOT ZLIB_FOUND) | |
| -fno-math-errno | ||
| -fwrapv) | ||
| endif() | ||
|
|
||
| # Disable LTO for zlib to work around GCC LTO linker plugin not | ||
| # properly rescanning this archive for transitive dependencies | ||
| if(HYDRA_COMPILER_GCC) | ||
| target_compile_options(zlib PRIVATE -fno-lto) | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. If the project enables LTO globally (e.g., via Severity: medium 🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage. |
||
| endif() | ||
| endif() | ||
|
|
||
| target_include_directories(zlib PUBLIC | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
P2: Scope this LTO workaround to static zlib builds; as written it also disables LTO for shared builds that are not affected by the archive-rescan issue.
Prompt for AI agents