File riscv.patch of Package gn

Index: gn-0.1726/src/util/build_config.h
===================================================================
--- gn-0.1726.orig/src/util/build_config.h
+++ gn-0.1726/src/util/build_config.h
@@ -161,6 +161,16 @@
 #define ARCH_CPU_32_BITS 1
 #define ARCH_CPU_BIG_ENDIAN 1
 #endif
+#elif defined(__riscv)
+#define ARCH_CPU_RISCV_FAMILY 1
+#if __riscv_xlen == 64
+#define ARCH_CPU_RISCV64 1
+#define ARCH_CPU_64_BITS 1
+#else
+#define ARCH_CPU_RISCV32 1
+#define ARCH_CPU_32_BITS 1
+#endif
+#define ARCH_CPU_LITTLE_ENDIAN 1
 #else
 #error Please add support for your architecture in build_config.h
 #endif
openSUSE Build Service is sponsored by