mirror of
https://github.com/odin-lang/Odin.git
synced 2026-05-17 17:49:45 +00:00
Update ABI breaking changes for f16 types (due to LLVM 15+)
This commit is contained in:
@@ -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++) {
|
||||
|
||||
Reference in New Issue
Block a user