Skip to content

#399 Add big object compiler flag - #401

Open
vrcomputing wants to merge 3 commits into
uwerat:masterfrom
vrcomputing:fix-mingw-file-too-big
Open

#399 Add big object compiler flag#401
vrcomputing wants to merge 3 commits into
uwerat:masterfrom
vrcomputing:fix-mingw-file-too-big

Conversation

@vrcomputing

Copy link
Copy Markdown
Contributor

Fixes #399

Comment thread qmlexport/CMakeLists.txt

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