Skip to content

Commit 0605fc1

Browse files
glennpjadamjstewart
authored andcommitted
Build graphite2 with Intel compiler (spack#14636)
This PR sets the definition of REGPARM when building with the Intel compiler.
1 parent 94def87 commit 0605fc1

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

var/spack/repos/builtin/packages/graphite2/package.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,5 @@ class Graphite2(CMakePackage):
1616
url = "https://github.com/silnrsi/graphite/releases/download/1.3.13/graphite2-1.3.13.tgz"
1717

1818
version('1.3.13', sha256='dd63e169b0d3cf954b397c122551ab9343e0696fb2045e1b326db0202d875f06')
19+
20+
patch('regparm.patch')
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
--- a/src/inc/Machine.h 2018-12-20 00:28:50.000000000 -0600
2+
+++ b/src/inc/Machine.h 2020-01-26 19:15:29.965965418 -0600
3+
@@ -46,7 +46,7 @@
4+
#endif
5+
#else
6+
#define HOT __attribute__((hot))
7+
-#if defined(__x86_64)
8+
+#if defined(__x86_64) && !defined(__INTEL_COMPILER)
9+
#define REGPARM(n) __attribute__((hot, regparm(n)))
10+
#else
11+
#define REGPARM(n)

0 commit comments

Comments
 (0)