From b9aafd67002be96bf00eea4e7791804693ba4b1f Mon Sep 17 00:00:00 2001 From: Jack Lloyd Date: Mon, 6 Aug 2018 13:27:41 -0400 Subject: Add detection for RISCV compilers --- src/build-data/detect_arch.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') 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 -- cgit v1.2.3