krims: disable float80 when non x86_64. (#19388)
This commit is contained in:
parent
bac1f94046
commit
9beadc3c14
13
var/spack/repos/builtin/packages/krims/float80.patch
Normal file
13
var/spack/repos/builtin/packages/krims/float80.patch
Normal file
@ -0,0 +1,13 @@
|
||||
--- spack-src/src/krims/DataFiles/ieee_convert.cc.old 2020-10-20 12:35:49.635656789 +0900
|
||||
+++ spack-src/src/krims/DataFiles/ieee_convert.cc 2020-10-20 13:21:34.031342615 +0900
|
||||
@@ -24,8 +24,10 @@
|
||||
|
||||
#if __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ > 6)
|
||||
#define FLOAT128 __float128
|
||||
+#ifdef __x86_64__
|
||||
#define FLOAT80 __float80
|
||||
#endif
|
||||
+#endif
|
||||
|
||||
// Useful resources:
|
||||
// https://en.wikipedia.org/wiki/Double-precision_floating-point_format
|
@ -43,6 +43,12 @@ class Krims(CMakePackage):
|
||||
conflicts("%gcc@:4.8")
|
||||
conflicts("%clang@:3.5")
|
||||
|
||||
#
|
||||
# patch
|
||||
#
|
||||
# float80 is enable only x86_64
|
||||
patch('float80.patch')
|
||||
|
||||
#
|
||||
# Dependencies
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user