mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-09 21:11:36 -07:00
Change target name to freestanding_amd64_sysv
This commit is contained in:
@@ -49,8 +49,8 @@ enum TargetEndianKind : u8 {
|
||||
enum TargetABIKind : u16 {
|
||||
TargetABI_Default,
|
||||
|
||||
TargetABI_MSVC,
|
||||
TargetABI_GNU,
|
||||
TargetABI_Win64,
|
||||
TargetABI_SysV,
|
||||
|
||||
TargetABI_COUNT,
|
||||
};
|
||||
@@ -428,14 +428,14 @@ gb_global TargetMetrics target_wasi_wasm32 = {
|
||||
// str_lit(""),
|
||||
// };
|
||||
|
||||
gb_global TargetMetrics target_freestanding_amd64_gnu = {
|
||||
gb_global TargetMetrics target_freestanding_amd64_sysv = {
|
||||
TargetOs_freestanding,
|
||||
TargetArch_amd64,
|
||||
8,
|
||||
16,
|
||||
str_lit("x86_64-pc-none-gnu"),
|
||||
str_lit("e-m:w-i64:64-f80:128-n8:16:32:64-S128"),
|
||||
TargetABI_GNU,
|
||||
TargetABI_SysV,
|
||||
};
|
||||
|
||||
|
||||
@@ -460,7 +460,7 @@ gb_global NamedTargetMetrics named_targets[] = {
|
||||
{ str_lit("wasi_wasm32"), &target_wasi_wasm32 },
|
||||
{ str_lit("js_wasm32"), &target_js_wasm32 },
|
||||
|
||||
{ str_lit("freestanding_amd64_gnu"), &target_freestanding_amd64_gnu },
|
||||
{ str_lit("freestanding_amd64_sysv"), &target_freestanding_amd64_sysv },
|
||||
};
|
||||
|
||||
NamedTargetMetrics *selected_target_metrics;
|
||||
|
||||
+2
-2
@@ -1194,9 +1194,9 @@ LB_ABI_INFO(lb_get_abi_info) {
|
||||
|
||||
switch (build_context.metrics.arch) {
|
||||
case TargetArch_amd64:
|
||||
if (build_context.metrics.os == TargetOs_windows || build_context.metrics.abi == TargetABI_MSVC) {
|
||||
if (build_context.metrics.os == TargetOs_windows || build_context.metrics.abi == TargetABI_Win64) {
|
||||
return lbAbiAmd64Win64::abi_info(c, arg_types, arg_count, return_type, return_is_defined, calling_convention);
|
||||
} else if (build_context.metrics.abi == TargetABI_GNU) {
|
||||
} else if (build_context.metrics.abi == TargetABI_SysV) {
|
||||
return lbAbiAmd64SysV::abi_info(c, arg_types, arg_count, return_type, return_is_defined, calling_convention);
|
||||
} else {
|
||||
return lbAbiAmd64SysV::abi_info(c, arg_types, arg_count, return_type, return_is_defined, calling_convention);
|
||||
|
||||
@@ -1001,10 +1001,10 @@ String lb_filepath_obj_for_module(lbModule *m) {
|
||||
switch (build_context.metrics.abi) {
|
||||
default:
|
||||
case TargetABI_Default:
|
||||
case TargetABI_GNU:
|
||||
case TargetABI_SysV:
|
||||
ext = STR_LIT(".o");
|
||||
break;
|
||||
case TargetABI_MSVC:
|
||||
case TargetABI_Win64:
|
||||
ext = STR_LIT(".obj");
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user