mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 16:18:52 +00:00
Enforce dynamic map calls for the time being
This commit is contained in:
@@ -1253,6 +1253,9 @@ gb_internal void init_build_context(TargetMetrics *cross_target) {
|
|||||||
|
|
||||||
bc->optimization_level = gb_clamp(bc->optimization_level, 0, 3);
|
bc->optimization_level = gb_clamp(bc->optimization_level, 0, 3);
|
||||||
|
|
||||||
|
// ENFORCE DYNAMIC MAP CALLS
|
||||||
|
bc->dynamic_map_calls = true;
|
||||||
|
|
||||||
bc->ODIN_VALGRIND_SUPPORT = false;
|
bc->ODIN_VALGRIND_SUPPORT = false;
|
||||||
if (build_context.metrics.os != TargetOs_windows) {
|
if (build_context.metrics.os != TargetOs_windows) {
|
||||||
switch (bc->metrics.arch) {
|
switch (bc->metrics.arch) {
|
||||||
|
|||||||
@@ -1035,8 +1035,8 @@ gb_internal lbValue lb_emit_call(lbProcedure *p, lbValue value, Array<lbValue> c
|
|||||||
if (is_odin_cc) {
|
if (is_odin_cc) {
|
||||||
if (are_types_identical(original_type, t_source_code_location)) {
|
if (are_types_identical(original_type, t_source_code_location)) {
|
||||||
ptr = lb_address_from_load_or_generate_local(p, x);
|
ptr = lb_address_from_load_or_generate_local(p, x);
|
||||||
} else {
|
// } else {
|
||||||
ptr = lb_address_from_load_if_readonly_parameter(p, x);
|
// ptr = lb_address_from_load_if_readonly_parameter(p, x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (ptr.value == nullptr) {
|
if (ptr.value == nullptr) {
|
||||||
|
|||||||
Reference in New Issue
Block a user