Skip to content

Commit

Permalink
.pro: fix LTO opt toggling in 47a5eeb
Browse files Browse the repository at this point in the history
  • Loading branch information
adriweb committed Aug 6, 2024
1 parent 7089dc8 commit c42f74d
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions gui/qt/CEmu.pro
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,9 @@ if (!win32-msvc*) {
GLOBAL_FLAGS += -ffunction-sections -fdata-sections -fno-strict-overflow
QMAKE_CFLAGS += -std=gnu11 -Werror=implicit-function-declaration -Werror=missing-prototypes

# -flto might cause an internal compiler error on GCC in some circumstances (with -g3?)... Comment it if needed.
CONFIG(release, debug|release): GLOBAL_FLAGS += -O3 -flto

if (contains(DEFINES, LIB_ARCHIVE_SUPPORT)) {
CONFIG += link_pkgconfig
PKGCONFIG += zlib libarchive
Expand Down

0 comments on commit c42f74d

Please sign in to comment.