Skip to content

Commit 3660086

Browse files
authored
feat: add riscv detection macros in config.hpp
1 parent 4e70dc0 commit 3660086

File tree

1 file changed

+8
-0
lines changed
  • src/external/cpuid/platform/src/platform

1 file changed

+8
-0
lines changed

Diff for: src/external/cpuid/platform/src/platform/config.hpp

+8
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,10 @@
5555
#define PLATFORM_MIPS 1
5656
#define PLATFORM_CLANG_MIPS 1
5757
#define PLATFORM_GCC_COMPATIBLE_MIPS 1
58+
#elif defined(__riscv)
59+
#define PLATFORM_RISCV 1
60+
#define PLATFORM_CLANG_RISCV 1
61+
#define PLATFORM_GCC_COMPATIBLE_RISCV 1
5862
#elif defined(__asmjs__)
5963
#define PLATFORM_ASMJS 1
6064
#define PLATFORM_CLANG_ASMJS 1
@@ -75,6 +79,10 @@
7579
#define PLATFORM_MIPS 1
7680
#define PLATFORM_GCC_MIPS 1
7781
#define PLATFORM_GCC_COMPATIBLE_MIPS 1
82+
#elif defined(__riscv)
83+
#define PLATFORM_RISCV 1
84+
#define PLATFORM_GCC_RISCV 1
85+
#define PLATFORM_GCC_COMPATIBLE_RISCV 1
7886
#endif
7987
#elif defined(_MSC_VER)
8088
#define PLATFORM_MSVC 1

0 commit comments

Comments
 (0)