File: disable-md-on-32bit.patch

package info (click to toggle)
ares 126-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 32,600 kB
  • sloc: cpp: 356,508; ansic: 20,394; makefile: 16; sh: 2
file content (20 lines) | stat: -rw-r--r-- 614 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Disable Sega Mega Drive core on 32 bit architectures
 The core uses 128 bit integers which are only available on
 64 bit architectures.
Author: Tobias Hansen <thansen@debian.org>

--- a/desktop-ui/GNUmakefile
+++ b/desktop-ui/GNUmakefile
@@ -32,8 +32,11 @@
 include $(hiro.path)/GNUmakefile
 
 profile := performance
-cores := fc sfc n64 sg ms md ps1 pce ng msx cv gb gba ws ngp
+cores := fc sfc n64 sg ms ps1 pce ng msx cv gb gba ws ngp
 #cores += saturn
+ifneq ($(shell $(compiler) -E -dM - < /dev/null | grep INT128),)
+	cores += md
+endif
 
 ares.path := ../ares
 include $(ares.path)/GNUmakefile