File: no-mips-optimization.diff

package info (click to toggle)
openmsx 20.0%2Bdfsg-1.2
  • links: PTS
  • area: main
  • in suites: forky, sid, trixie
  • size: 27,544 kB
  • sloc: cpp: 236,922; xml: 49,948; tcl: 15,056; python: 5,385; perl: 281; sh: 77; makefile: 53
file content (29 lines) | stat: -rw-r--r-- 1,161 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
Description: Disable optimization for mips due to slow buildds
 This patch disables optimization for mips machines, so it compiles before
 hitting a timeout on the mips buildds.  Unfortunately the mips team seems
 unwilling to increase the timeout; given that those machines are this slow, it
 is likely that they could have used the optimization.
Author: Dejan Latinovic <Dejan.Latinovic@imgtec.com>
Reviewed-by: Bas Wijnen <wijnen@debian.org>
Bug-Debian: https://bugs.debian.org/754757
Forwarded: not-needed
Last-Update: 2014-10-05

Index: openmsx-20.0+dfsg/build/flavour-debian.mk
===================================================================
--- openmsx-20.0+dfsg.orig/build/flavour-debian.mk
+++ openmsx-20.0+dfsg/build/flavour-debian.mk
@@ -20,7 +20,12 @@ else
         # Do not enable -O3 to work around GCC bug <http://bugs.debian.org/647552>.
         CXXFLAGS += -O2
     else
-        CXXFLAGS += -O3
+        ifeq ($(DEB_HOST_ARCH_CPU),mips)
+            # Use -O0 to reduce time of compilation on mips <https://bugs.debian.org/754757>
+            CXXFLAGS += -O0
+        else
+            CXXFLAGS += -O3
+        endif
     endif
 endif