diff options
| author | gingerBill <bill@gingerbill.org> | 2023-09-21 10:38:44 +0100 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2023-09-21 10:38:44 +0100 |
| commit | 96fbafe3598822d8d62791d881879c4da33431ea (patch) | |
| tree | a76dc5239c69953c1da5b32cd79e37d9320b7767 /src/checker.cpp | |
| parent | e82b0ea4cd1b8c750b517eee806ea4ae1e2b21a6 (diff) | |
Update ABI breaking changes for `f16` types (due to LLVM 15+)
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 18d403d80..0be912df5 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -935,6 +935,7 @@ gb_internal i64 odin_compile_timestamp(void) { return ns_after_1970; } +gb_internal bool lb_use_new_pass_system(void); gb_internal void init_universal(void) { BuildContext *bc = &build_context; @@ -1083,6 +1084,8 @@ gb_internal void init_universal(void) { add_global_constant("ODIN_COMPILE_TIMESTAMP", t_untyped_integer, exact_value_i64(odin_compile_timestamp())); + add_global_bool_constant("__ODIN_LLVM_F16_SUPPORTED", lb_use_new_pass_system()); + // Builtin Procedures for (isize i = 0; i < gb_count_of(builtin_procs); i++) { |