Move LTCG/LTO enablement into the build scripts

This commit is contained in:
Cameron Gutman committed 2026-05-26 21:46:58 -05:00
1 parent adfc972371
commit 81f20cdb66
3 files changed
+10 -15

No files matched your search

-15
View File
@@ -20,21 +20,6 @@ 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