diff options
| author | gingerBill <bill@gingerbill.org> | 2024-03-26 13:06:46 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2024-03-26 13:06:46 +0000 |
| commit | 620dd2c8125164c912a1f246f07878ffa141e50b (patch) | |
| tree | 3d73b646fd4a1192bb0aba4551e71a3ddfa35b22 /src/checker.cpp | |
| parent | 533ba63c82d21dbd21551970200ebc5b81d237f1 (diff) | |
| parent | 2165303f5ee8deca3e473e4e44c23265e2f1649a (diff) | |
Merge branch 'master' of https://github.com/odin-lang/Odin
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index c6f44fcd8..e7d0ad9cb 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -1115,7 +1115,16 @@ 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() && !is_arch_wasm()); + { + bool f16_supported = lb_use_new_pass_system(); + if (is_arch_wasm()) { + f16_supported = false; + } else if (build_context.metrics.os == TargetOs_darwin && build_context.metrics.arch == TargetArch_amd64) { + // NOTE(laytan): See #3222 for my ramblings on this. + f16_supported = false; + } + add_global_bool_constant("__ODIN_LLVM_F16_SUPPORTED", f16_supported); + } { GlobalEnumValue values[3] = { |