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

#399 Add big object compiler flag #401

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

vrcomputing
Copy link
Contributor

Fixes #399


if (CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
#target_compile_options(${target} PRIVATE "-Wa,-mbig-obj")
set_source_files_properties(QskQml.cpp PROPERTIES COMPILE_FLAGS "-Wa,-mbig-obj")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@uwerat The first line adds the compiler options to the target, hence every cpp file. The second line adds it only to the problematic file.

@vrcomputing vrcomputing force-pushed the fix-mingw-file-too-big branch from 2b73982 to 37c68bd Compare February 28, 2024 17:43
@vrcomputing vrcomputing force-pushed the fix-mingw-file-too-big branch from 37c68bd to b7380d7 Compare February 28, 2024 18:13
@vrcomputing
Copy link
Contributor Author

@uwerat builds are green again, mergeable if still needed after your adaptions

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.

File too big error qt6.6.1 mingw64
1 participant