mirror of
https://github.com/moonlight-stream/moonlight-qt.git
synced 2026-07-12 18:03:52 +00:00
Enable LTCG/LTO for release builds
This commit is contained in:
@@ -20,6 +20,21 @@ CONFIG(release, debug|release) {
|
||||
}
|
||||
}
|
||||
|
||||
# Enable LTCG/LTO for release builds
|
||||
CONFIG(release, debug|release) {
|
||||
*-msvc {
|
||||
QMAKE_CFLAGS += /GL
|
||||
QMAKE_CXXFLAGS += /GL
|
||||
QMAKE_LFLAGS += /LTCG
|
||||
}
|
||||
|
||||
macx {
|
||||
QMAKE_CFLAGS += -flto=thin
|
||||
QMAKE_CXXFLAGS += -flto=thin
|
||||
QMAKE_LFLAGS += -flto=thin
|
||||
}
|
||||
}
|
||||
|
||||
# Enable ASan for Linux or macOS
|
||||
#CONFIG += sanitizer sanitize_address
|
||||
|
||||
|
||||
Reference in New Issue
Block a user