Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix to build with Intel compiler #61

Open
glennpj opened this issue Jan 27, 2020 · 1 comment
Open

fix to build with Intel compiler #61

glennpj opened this issue Jan 27, 2020 · 1 comment

Comments

@glennpj
Copy link

glennpj commented Jan 27, 2020

Currently, graphite2 does not build with the Intel compiler due to the REGPARM definition. The following patch will get it to build.

index b23819f..0f75ae8 100644
--- a/src/inc/Machine.h
+++ b/src/inc/Machine.h
@@ -46,7 +46,7 @@ of the License or (at your option) any later version.
 #endif
 #else
 #define     HOT             __attribute__((hot))
-#if defined(__x86_64)
+#if defined(__x86_64) && !defined(__INTEL_COMPILER)
 #define     REGPARM(n)      __attribute__((hot, regparm(n)))
 #else
 #define     REGPARM(n)
@mgood7123
Copy link

applied in #69

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants