File: no-mips-optimization.patch

package info (click to toggle)
openmsx 18.0-1
  • links: PTS
  • area: main
  • in suites: bookworm
  • size: 23,600 kB
  • sloc: cpp: 167,019; xml: 46,204; tcl: 18,022; python: 5,373; sh: 77; makefile: 38
file content (29 lines) | stat: -rw-r--r-- 1,146 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-17.0/build/flavour-debian.mk
===================================================================
--- openmsx-17.0.orig/build/flavour-debian.mk
+++ openmsx-17.0/build/flavour-debian.mk
@@ -14,7 +14,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