mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:07:46 +00:00
AK: Add riscv64 support
This commit is contained in:
parent
3c176bafee
commit
d572ad38ac
2 changed files with 13 additions and 0 deletions
|
@ -23,6 +23,12 @@
|
|||
# define AK_IS_ARCH_AARCH64() 0
|
||||
#endif
|
||||
|
||||
#if defined(__riscv) && __riscv_xlen == 64
|
||||
# define AK_IS_ARCH_RISCV64() 1
|
||||
#else
|
||||
# define AK_IS_ARCH_RISCV64() 0
|
||||
#endif
|
||||
|
||||
#ifdef __wasm32__
|
||||
# define AK_IS_ARCH_WASM32() 1
|
||||
#else
|
||||
|
@ -113,6 +119,12 @@
|
|||
# define VALIDATE_IS_AARCH64() static_assert(false, "Trying to include aarch64 only header on non aarch64 platform");
|
||||
#endif
|
||||
|
||||
#if ARCH(RISCV64)
|
||||
# define VALIDATE_IS_RISCV64()
|
||||
#else
|
||||
# define VALIDATE_IS_RISCV64() static_assert(false, "Trying to include riscv64 only header on non riscv64 platform");
|
||||
#endif
|
||||
|
||||
#if !defined(AK_COMPILER_CLANG)
|
||||
# define AK_HAS_CONDITIONALLY_TRIVIAL
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue