mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-05 15:18:49 +00:00
Disable wasm64
This commit is contained in:
@@ -380,7 +380,7 @@ gb_global NamedTargetMetrics named_targets[] = {
|
|||||||
{ str_lit("freebsd_386"), &target_freebsd_386 },
|
{ str_lit("freebsd_386"), &target_freebsd_386 },
|
||||||
{ str_lit("freebsd_amd64"), &target_freebsd_amd64 },
|
{ str_lit("freebsd_amd64"), &target_freebsd_amd64 },
|
||||||
{ str_lit("freestanding_wasm32"), &target_freestanding_wasm32 },
|
{ str_lit("freestanding_wasm32"), &target_freestanding_wasm32 },
|
||||||
{ str_lit("freestanding_wasm64"), &target_freestanding_wasm64 },
|
// { str_lit("freestanding_wasm64"), &target_freestanding_wasm64 },
|
||||||
{ str_lit("wasi_wasm32"), &target_wasi_wasm32 },
|
{ str_lit("wasi_wasm32"), &target_wasi_wasm32 },
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@@ -787,7 +787,7 @@ lbProcedure *lb_create_main_procedure(lbModule *m, lbProcedure *startup_runtime)
|
|||||||
call_cleanup = false;
|
call_cleanup = false;
|
||||||
} else if (build_context.metrics.os == TargetOs_windows && build_context.metrics.arch == TargetArch_386) {
|
} else if (build_context.metrics.os == TargetOs_windows && build_context.metrics.arch == TargetArch_386) {
|
||||||
name = str_lit("mainCRTStartup");
|
name = str_lit("mainCRTStartup");
|
||||||
} else if (build_context.metrics.os == TargetOs_wasi) {
|
} else if (is_arch_wasm()) {
|
||||||
name = str_lit("_start");
|
name = str_lit("_start");
|
||||||
call_cleanup = false;
|
call_cleanup = false;
|
||||||
} else {
|
} else {
|
||||||
@@ -895,7 +895,7 @@ lbProcedure *lb_create_main_procedure(lbModule *m, lbProcedure *startup_runtime)
|
|||||||
lb_end_procedure_body(p);
|
lb_end_procedure_body(p);
|
||||||
|
|
||||||
|
|
||||||
if (build_context.metrics.os == TargetOs_wasi) {
|
if (is_arch_wasm()) {
|
||||||
LLVMSetLinkage(p->value, LLVMDLLExportLinkage);
|
LLVMSetLinkage(p->value, LLVMDLLExportLinkage);
|
||||||
} else {
|
} else {
|
||||||
LLVMSetLinkage(p->value, LLVMExternalLinkage);
|
LLVMSetLinkage(p->value, LLVMExternalLinkage);
|
||||||
|
|||||||
Reference in New Issue
Block a user