mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Compile with -O2 in release mode and -O1 in debug mode
This commit is contained in:
parent
1bfc181cb2
commit
89ecdca5e7
1 changed files with 4 additions and 3 deletions
|
@ -19,17 +19,18 @@ DEFINES += VERSION_BUGFIX=0
|
||||||
contains(DEBUG_MODE, 1){
|
contains(DEBUG_MODE, 1){
|
||||||
CONFIG += debug
|
CONFIG += debug
|
||||||
CONFIG -= release
|
CONFIG -= release
|
||||||
|
QMAKE_CXXFLAGS_RELEASE += -O1
|
||||||
|
QMAKE_CXXFLAGS_DEBUG += -O1
|
||||||
message(Debug build!)
|
message(Debug build!)
|
||||||
}
|
}
|
||||||
contains(DEBUG_MODE, 0){
|
contains(DEBUG_MODE, 0){
|
||||||
CONFIG -= debug
|
CONFIG -= debug
|
||||||
CONFIG += release
|
CONFIG += release
|
||||||
|
QMAKE_CXXFLAGS_RELEASE += -O2
|
||||||
|
QMAKE_CXXFLAGS_DEBUG += -O2
|
||||||
message(Release build!)
|
message(Release build!)
|
||||||
}
|
}
|
||||||
|
|
||||||
QMAKE_CXXFLAGS_RELEASE += -fwrapv -O2
|
|
||||||
QMAKE_CXXFLAGS_DEBUG += -fwrapv -O2
|
|
||||||
|
|
||||||
CONFIG += link_pkgconfig
|
CONFIG += link_pkgconfig
|
||||||
PKGCONFIG += libtorrent libccext2 libccgnu2
|
PKGCONFIG += libtorrent libccext2 libccgnu2
|
||||||
QT += network xml
|
QT += network xml
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue