Add freestanding_amd64_gnu

This commit is contained in:
gingerBill
2022-02-20 14:19:52 +00:00
parent ba61d911da
commit 1bec9e5331
3 changed files with 48 additions and 5 deletions

View File

@@ -996,6 +996,19 @@ String lb_filepath_obj_for_module(lbModule *m) {
case TargetOs_essence:
ext = STR_LIT(".o");
break;
case TargetOs_freestanding:
switch (build_context.metrics.abi) {
default:
case TargetABI_Default:
case TargetABI_GNU:
ext = STR_LIT(".o");
break;
case TargetABI_MSVC:
ext = STR_LIT(".obj");
break;
}
break;
}
}
}