mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Minor fixes to platform checking code
This commit is contained in:
@@ -127,6 +127,7 @@ char const *odin_command_strings[32] = {
|
|||||||
"query",
|
"query",
|
||||||
"doc",
|
"doc",
|
||||||
"version",
|
"version",
|
||||||
|
"test",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -8988,6 +8988,16 @@ lbValue lb_build_builtin_proc(lbProcedure *p, Ast *expr, TypeAndValue const &tv,
|
|||||||
);
|
);
|
||||||
GB_ASSERT(the_asm != nullptr);
|
GB_ASSERT(the_asm != nullptr);
|
||||||
LLVMBuildCall2(p->builder, func_type, the_asm, nullptr, 0, "");
|
LLVMBuildCall2(p->builder, func_type, the_asm, nullptr, 0, "");
|
||||||
|
} else if (build_context.metrics.arch == TargetArch_arm64) {
|
||||||
|
LLVMTypeRef func_type = LLVMFunctionType(LLVMVoidTypeInContext(p->module->ctx), nullptr, 0, false);
|
||||||
|
LLVMValueRef the_asm = LLVMGetInlineAsm(func_type,
|
||||||
|
cast(char *)"yield", 5,
|
||||||
|
cast(char *)"", 0,
|
||||||
|
/*HasSideEffects*/true, /*IsAlignStack*/false,
|
||||||
|
LLVMInlineAsmDialectATT
|
||||||
|
);
|
||||||
|
GB_ASSERT(the_asm != nullptr);
|
||||||
|
LLVMBuildCall2(p->builder, func_type, the_asm, nullptr, 0, "");
|
||||||
}
|
}
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -696,7 +696,7 @@ bool parse_build_flags(Array<String> args) {
|
|||||||
add_flag(&build_flags, BuildFlag_Collection, str_lit("collection"), BuildFlagParam_String, Command__does_check);
|
add_flag(&build_flags, BuildFlag_Collection, str_lit("collection"), BuildFlagParam_String, Command__does_check);
|
||||||
add_flag(&build_flags, BuildFlag_Define, str_lit("define"), BuildFlagParam_String, Command__does_check, true);
|
add_flag(&build_flags, BuildFlag_Define, str_lit("define"), BuildFlagParam_String, Command__does_check, true);
|
||||||
add_flag(&build_flags, BuildFlag_BuildMode, str_lit("build-mode"), BuildFlagParam_String, Command__does_build); // Commands_build is not used to allow for a better error message
|
add_flag(&build_flags, BuildFlag_BuildMode, str_lit("build-mode"), BuildFlagParam_String, Command__does_build); // Commands_build is not used to allow for a better error message
|
||||||
add_flag(&build_flags, BuildFlag_Target, str_lit("target"), BuildFlagParam_String, Command__does_build);
|
add_flag(&build_flags, BuildFlag_Target, str_lit("target"), BuildFlagParam_String, Command__does_check);
|
||||||
add_flag(&build_flags, BuildFlag_Debug, str_lit("debug"), BuildFlagParam_None, Command__does_check);
|
add_flag(&build_flags, BuildFlag_Debug, str_lit("debug"), BuildFlagParam_None, Command__does_check);
|
||||||
add_flag(&build_flags, BuildFlag_DisableAssert, str_lit("disable-assert"), BuildFlagParam_None, Command__does_check);
|
add_flag(&build_flags, BuildFlag_DisableAssert, str_lit("disable-assert"), BuildFlagParam_None, Command__does_check);
|
||||||
add_flag(&build_flags, BuildFlag_NoBoundsCheck, str_lit("no-bounds-check"), BuildFlagParam_None, Command__does_check);
|
add_flag(&build_flags, BuildFlag_NoBoundsCheck, str_lit("no-bounds-check"), BuildFlagParam_None, Command__does_check);
|
||||||
|
|||||||
Reference in New Issue
Block a user