aboutsummaryrefslogtreecommitdiffstats
path: root/src/build-data
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2018-08-06 13:27:41 -0400
committerJack Lloyd <[email protected]>2018-08-06 13:27:41 -0400
commitb9aafd67002be96bf00eea4e7791804693ba4b1f (patch)
tree36732b8d39b9ba874f8ffa9efdaefaefac6c2e83 /src/build-data
parent14085fd7922103714d4f3f8e2a244eaf1cd30371 (diff)
Add detection for RISCV compilers
Diffstat (limited to 'src/build-data')
-rw-r--r--src/build-data/detect_arch.cpp8
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