mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-06 15:48:51 +00:00
Merge branch 'master' into i386-syscall-asm-fix
This commit is contained in:
@@ -1388,8 +1388,10 @@ 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);
|
||||||
|
|
||||||
// ENFORCE DYNAMIC MAP CALLS
|
if (bc->metrics.os != TargetOs_windows) {
|
||||||
// bc->dynamic_map_calls = false;
|
// 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) {
|
||||||
|
|||||||
@@ -506,9 +506,9 @@ gb_internal lbValue lb_map_get_proc_for_type(lbModule *m, Type *type) {
|
|||||||
|
|
||||||
LLVMSetLinkage(p->value, LLVMInternalLinkage);
|
LLVMSetLinkage(p->value, LLVMInternalLinkage);
|
||||||
lb_add_attribute_to_proc(m, p->value, "nounwind");
|
lb_add_attribute_to_proc(m, p->value, "nounwind");
|
||||||
// if (build_context.ODIN_DEBUG) {
|
if (build_context.ODIN_DEBUG) {
|
||||||
lb_add_attribute_to_proc(m, p->value, "noinline");
|
lb_add_attribute_to_proc(m, p->value, "noinline");
|
||||||
// }
|
}
|
||||||
|
|
||||||
LLVMValueRef x = LLVMGetParam(p->value, 0);
|
LLVMValueRef x = LLVMGetParam(p->value, 0);
|
||||||
LLVMValueRef y = LLVMGetParam(p->value, 1);
|
LLVMValueRef y = LLVMGetParam(p->value, 1);
|
||||||
|
|||||||
Reference in New Issue
Block a user