mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-15 15:41:26 -07:00
Allow .asm, .s, and .S as valid assembly file extensions
This commit is contained in:
+1
-2
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user