mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-31 11:50:07 +00:00
llvm-18: enable static map calls on non amd64sysv targets
This commit is contained in:
@@ -2016,12 +2016,11 @@ gb_internal void init_build_context(TargetMetrics *cross_target, Subtarget subta
|
|||||||
|
|
||||||
bc->optimization_level = gb_clamp(bc->optimization_level, -1, 3);
|
bc->optimization_level = gb_clamp(bc->optimization_level, -1, 3);
|
||||||
|
|
||||||
#if LLVM_VERSION_MAJOR < 18
|
// TODO: Static map calls are bugged on `amd64sysv` abi.
|
||||||
if (bc->metrics.os != TargetOs_windows) {
|
if (bc->metrics.os != TargetOs_windows && bc->metrics.arch == TargetArch_amd64) {
|
||||||
// ENFORCE DYNAMIC MAP CALLS
|
// ENFORCE DYNAMIC MAP CALLS
|
||||||
bc->dynamic_map_calls = true;
|
bc->dynamic_map_calls = true;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
bc->ODIN_VALGRIND_SUPPORT = false;
|
bc->ODIN_VALGRIND_SUPPORT = false;
|
||||||
if (build_context.metrics.os != TargetOs_windows) {
|
if (build_context.metrics.os != TargetOs_windows) {
|
||||||
|
|||||||
Reference in New Issue
Block a user