diff options
author | Jack Lloyd <[email protected]> | 2018-08-06 13:27:41 -0400 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2018-08-06 13:27:41 -0400 |
commit | b9aafd67002be96bf00eea4e7791804693ba4b1f (patch) | |
tree | 36732b8d39b9ba874f8ffa9efdaefaefac6c2e83 /src | |
parent | 14085fd7922103714d4f3f8e2a244eaf1cd30371 (diff) |
Add detection for RISCV compilers
Diffstat (limited to 'src')
-rw-r--r-- | src/build-data/detect_arch.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/build-data/detect_arch.cpp b/src/build-data/detect_arch.cpp index f5e6ecd58..028e39b3b 100644 --- a/src/build-data/detect_arch.cpp +++ b/src/build-data/detect_arch.cpp @@ -57,6 +57,14 @@ #elif defined(__s390__) S390 +#elif defined(__riscv) + + #if defined(__LP64__) + RISCV64 + #else + RISCV32 + #endif + #else UNKNOWN |