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

Disable LTCG for brotli and zlibng. #111805

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

jkoritzinsky
Copy link
Member

@jkoritzinsky jkoritzinsky commented Jan 24, 2025

Exclusively use CMake's INTERPROCEDURAL_OPTIMIZATION settings to handle turning on/off LTCG on Windows.

By consistently using these settings, we can be sure that we're not building anything for NativeAOT with /LTCG or /GL.

Fixes #111566

Exclusively use CMake's INTERPROCEDURAL_OPTIMIZATION settings to handle turning on/off LTCG on Windows.

By consistently using these settings, we can be sure that we're not building anything for NativeAOT with /LTCG or /GL.
@@ -30,3 +30,4 @@ target_compile_definitions(brotlicommon PRIVATE BROTLI_SHARED_COMPILATION BROTLI
# Don't build the brotli command line tool unless explicitly requested
# (which we never do)
set_target_properties(brotli PROPERTIES EXCLUDE_FROM_ALL ON)
set_property(TARGET brotlienc brotlidec brotlicommon PROPERTY INTERPROCEDURAL_OPTIMIZATION OFF)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this going to disable LTCG for regular Brotli build that ships in System.Compression.Native as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

Successfully merging this pull request may close these issues.

Brotli native code is compiled with LTCG
2 participants