mirror of
https://github.com/odin-lang/Odin.git
synced 2026-06-04 09:44:40 +00:00
riscv compiler support
This commit is contained in:
@@ -155,7 +155,7 @@ gb_internal void report_windows_product_type(DWORD ProductType) {
|
||||
#endif
|
||||
|
||||
gb_internal void odin_cpuid(int leaf, int result[]) {
|
||||
#if defined(GB_CPU_ARM)
|
||||
#if defined(GB_CPU_ARM) || defined(GB_CPU_RISCV)
|
||||
return;
|
||||
|
||||
#elif defined(GB_CPU_X86)
|
||||
@@ -225,6 +225,12 @@ gb_internal void report_cpu_info() {
|
||||
gb_printf("ARM\n");
|
||||
#endif
|
||||
}
|
||||
#elif defined(GB_CPU_RISCV)
|
||||
#if defined(GB_ARCH_64_BIT)
|
||||
gb_printf("RISCV64\n");
|
||||
#else
|
||||
gb_printf("RISCV32\n");
|
||||
#endif
|
||||
#else
|
||||
gb_printf("Unknown\n");
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user