krims: disable float80 when non x86_64. (#19388)

This commit is contained in:
Toyohisa Kameyama 2020-10-20 22:37:47 +09:00 committed by GitHub
parent bac1f94046
commit 9beadc3c14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 19 additions and 0 deletions

View 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

View File

@ -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
#