File: 32bitboostextract

package info (click to toggle)
python-escript 5.6-4
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 144,252 kB
  • sloc: python: 592,062; cpp: 136,909; ansic: 18,675; javascript: 9,411; xml: 3,384; sh: 740; makefile: 203
file content (29 lines) | stat: -rw-r--r-- 1,102 bytes parent folder | download | duplicates (3)
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: bitboostextract
 Suppress maybe unitialized warnings for 32bit builds _only_.
 Current g++ is reporting boost::python::extract<double> as using
 possibly unitialised memory.
Index: python-escript-5.6/scons/templates/sid_options.py
===================================================================
--- python-escript-5.6.orig/scons/templates/sid_options.py
+++ python-escript-5.6/scons/templates/sid_options.py
@@ -19,6 +19,7 @@
 # Refer to README_FIRST for usage instructions.
 
 escript_opts_version = 203
+cxx_extra = ''          #To allow string addition later
 #cxx_extra = '-Wno-literal-suffix'
 openmp = True
 #mpi = 'OPENMPI'
@@ -79,4 +80,11 @@ for i in debstuff:
   except NameError:   
     exec(k+"='"+v+"'")
 
-mathjax_path='/usr/share/javascript/mathjax/MathJax.js'
+import platform
+if platform.architecture()[0] == '32bit':
+    cxx_extra += ' -Wno-maybe-uninitialized '
+
+if platform.machine() in ('ppc', 'ppc64', 'ppc64le', 's390x'):
+    cxx_extra += ' -Wno-strict-overflow -Wno-error=strict-overflow '
+
+mathjax_path='file:///usr/share/javascript/mathjax/MathJax.js'