diff options
author | Seth R Johnson <johnsonsr@ornl.gov> | 2019-11-14 07:26:41 -0500 |
---|---|---|
committer | Guillem Jover <guillem@hadrons.org> | 2021-01-01 18:12:12 +0100 |
commit | 9c85d828a1abdd698f8a587abe8cbbaaa80eade8 (patch) | |
tree | fbc9ecc540b7ea367401c6e368b18e29c20c3829 | |
parent | eac4ce0c674cf5051e3c90afda74db6718b0518d (diff) |
Fix ELF detection on Intel compilers
The Intel compiler does not define __amd64__ on x86_64 platforms;
instead, like other compilers, it defines __x86_64__ .
Closes: !8
Signed-off-by: Guillem Jover <guillem@hadrons.org>
-rw-r--r-- | src/local-elf.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/local-elf.h b/src/local-elf.h index f784b12..98a2962 100644 --- a/src/local-elf.h +++ b/src/local-elf.h @@ -45,7 +45,7 @@ #define ELF_TARG_CLASS ELFCLASS64 #define ELF_TARG_DATA ELFDATA2LSB -#elif defined(__amd64__) +#elif defined(__amd64__) || defined(__x86_64__) #define ELF_TARG_MACH EM_X86_64 #if defined(__ILP32__) |