diff options
| author | Laytan <laytanlaats@hotmail.com> | 2024-09-01 15:51:39 +0200 |
|---|---|---|
| committer | Laytan <laytanlaats@hotmail.com> | 2024-09-01 21:42:47 +0200 |
| commit | 28c643d23f989937c8d530b49a2369e8cd9d39e2 (patch) | |
| tree | fc78a1d9dccc3184c759b54f8e269cc2397857e4 /src/main.cpp | |
| parent | 722b638e2cbefcc1735256ef712cf2b28078a7fb (diff) | |
riscv compiler support
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index 5131bdc21..34f3c832d 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3252,6 +3252,12 @@ int main(int arg_count, char const **arg_ptr) { gb_printf_err("missing required target feature: \"%.*s\", enable it by setting a different -microarch or explicitly adding it through -target-features\n", LIT(disabled)); gb_exit(1); } + + // NOTE(laytan): some weird errors on LLVM 14 that LLVM 17 fixes. + if (LLVM_VERSION_MAJOR < 17) { + gb_printf_err("Invalid LLVM version %s, RISC-V targets require at least LLVM 17\n", LLVM_VERSION_STRING); + gb_exit(1); + } } if (build_context.show_debug_messages) { |