Answer the question
In order to leave comments, you need to log in
Qt+QMake: how to set compilation options for a specific file?
I want to close certain functions of the program VMProtect, but the program uses LTO, and not all of them get into the assembly scheme (* .map).
I want to disable LTO in a separate CPP file.
Used by Qt, the QMake build system.
Answer the question
In order to leave comments, you need to log in
And again you have to answer yourself.
#pragma GCC optimize("O1")
#pragma GCC optimize("no-lto")
All settings in the "tools" - there are "options" - and look at the tabs.
I have Qt Creator 4.2.0 (4.2.0)
Based on Qt 5.7.1 (GCC 4.9.1 20140922 (Red Hat 4.9.1-10), 64 bits)
Compiled Dec 9 2016 at 12:18:01
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question