Allow .asm, .s, and .S as valid assembly file extensions

This commit is contained in:
gingerBill
2021-11-26 22:25:07 +00:00
parent 33dc12a61a
commit 27106dd9ae
3 changed files with 15 additions and 4 deletions
+1 -2
View File
@@ -4121,8 +4121,7 @@ void check_add_foreign_import_decl(CheckerContext *ctx, Ast *decl) {
add_entity_use(ctx, nullptr, e);
}
String ext = path_extension(fullpath);
if (ext == ".asm") {
if (has_asm_extension(fullpath)) {
if (build_context.metrics.arch != TargetArch_amd64 ||
build_context.metrics.os != TargetOs_windows) {
error(decl, "Assembly files are not yet supported on this platform: %.*s_%.*s",