diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2024-09-02 00:20:04 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-09-02 00:20:04 +0100 |
| commit | 16c5c69a4079652e930d897823446b7e7a65bd2f (patch) | |
| tree | 2543c3c65ca653bcc0ed13da59775d4b314d57e7 /src/bug_report.cpp | |
| parent | 39b49cb6fbf5f717bb0b01c6449d37f99ffd9b48 (diff) | |
| parent | 28c643d23f989937c8d530b49a2369e8cd9d39e2 (diff) | |
Merge pull request #4175 from laytan/riscv-compilerdev-2024-09
Support RISC-V for the compiler itself
Diffstat (limited to 'src/bug_report.cpp')
| -rw-r--r-- | src/bug_report.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/bug_report.cpp b/src/bug_report.cpp index 916d4016a..5f768f57f 100644 --- a/src/bug_report.cpp +++ b/src/bug_report.cpp @@ -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 |