Skip to content

Conversation

@jdtournier
Copy link
Member

The LTO options introduced with Qt 5.15 cause non-trivial conflicts with clang++ (at least it does on Arch Linux). I expect this will start to become problematic for other users soon.

Looking at the flags added by Qt, it looks like they don't add much over what we normally use. It's probably just as easy to ignore the additional flags that qmake suggest (CFLAGS & LDFLAGS), and stick to grabbing only the main ones (DEFINES, INCPATH & LIBS).

Works fine on Linux, will need checking on other OS's.

The LTO options introduced with Qt 5.15 cause non-trivial conflicts with
clang++. Furthermore, the flags added by Qt typically don't add much
over what we normally use.
@jdtournier jdtournier added this to the 3.0.4 milestone Mar 8, 2022
@jdtournier jdtournier requested a review from a team March 8, 2022 12:42
@jdtournier jdtournier self-assigned this Mar 8, 2022
@jdtournier
Copy link
Member Author

Just to clarify: this will only affect the compiler and linker flags used while compiling Qt / GUI apps. No impact on command-line only apps. I'll check this on Windows 10 as well, that's the OS most likely to break with these changes.

@maxpietsch
Copy link
Member

works with:

OS: darwin
Apple clang version 13.0.0 (clang-1300.0.29.30)
Qt 5.15.2

@jdtournier
Copy link
Member Author

Works fine on Windows 10 under MSYS2 as well. I think it's safe to merge. Can I get a review please...? 😁

@jdtournier jdtournier merged commit fcc2387 into master Mar 8, 2022
@jdtournier jdtournier deleted the configure_ignore_qmake_flags branch March 8, 2022 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants