summaryrefslogtreecommitdiff
path: root/O3-support.patch
blob: ab802cff73f925f9b66f7a996e7da71fe820e7a8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
--- a/Makefile
+++ b/Makefile
@@ -255,7 +261,7 @@
       OPTLEVEL = -O0
     else
       ifeq ($(shell $(CXX) -E -Os - < /dev/null > /dev/null 2>&1 && echo fos),fos)
-        OPTLEVEL = -Os
+        OPTLEVEL = -O3
       else
         OPTLEVEL = -O3
       endif
@@ -266,7 +272,7 @@
     ifeq ($(CXXMACHINE), x86_64-w64-mingw32.static)
       OPTLEVEL = -O3
     else
-      OPTLEVEL = -Os
+      OPTLEVEL = -O3
     endif
   endif
   ifdef LTO