Skip to content

Commit fe8b1ba

Browse files
committed
Update Optimize Method
1 parent c83fe26 commit fe8b1ba

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

RedPandaIDE/RedPandaIDE.pro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,17 @@ win32: {
8787
LIBS += -luser32 # window message APIs
8888
}
8989

90+
# Optimize Options
91+
CONFIG(debug, debug|release) {
92+
QMAKE_CXXFLAGS += -march=native -mtune=native
93+
QMAKE_CFLAGS += -march=native -mtune=native
94+
} else {
95+
QMAKE_CXXFLAGS += -O3
96+
QMAKE_CFLAGS += -O3
97+
98+
QMAKE_CXXFLAGS += -funroll-loops
99+
}
100+
90101
DEFINES += LIBEXECDIR=\\\"$${LIBEXECDIR}\\\"
91102
DEFINES += APP_NAME=\\\"$${APP_NAME}\\\"
92103

libs/qsynedit/qsynedit.pro

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,17 @@ win32: {
2323
DEFINES += _WIN32_WINNT=0x0501
2424
}
2525

26+
# Optimize Options
27+
CONFIG(debug, debug|release) {
28+
QMAKE_CXXFLAGS += -march=native -mtune=native
29+
QMAKE_CFLAGS += -march=native -mtune=native
30+
} else {
31+
QMAKE_CXXFLAGS += -O3
32+
QMAKE_CFLAGS += -O3
33+
34+
QMAKE_CXXFLAGS += -funroll-loops
35+
}
36+
2637
gcc {
2738
QMAKE_CXXFLAGS_RELEASE += -Werror=return-type
2839
QMAKE_CXXFLAGS_DEBUG += -Werror=return-type

0 commit comments

Comments
 (0)