M
M
Mercury132017-09-11 17:57:43
Qt
Mercury13, 2017-09-11 17:57:43

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

2 answer(s)
M
Mercury13, 2017-09-21
@Mercury13

And again you have to answer yourself.

#pragma GCC optimize("O1")
#pragma GCC optimize("no-lto")

D
Derevyanko Alexander, 2017-09-12
@dio4

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 question

Ask a Question

731 491 924 answers to any question