diff options
| author | gingerBill <bill@gingerbill.org> | 2021-11-26 22:25:07 +0000 |
|---|---|---|
| committer | gingerBill <bill@gingerbill.org> | 2021-11-26 22:25:07 +0000 |
| commit | 27106dd9aec67ebf9e3c53572513051e8bc973c6 (patch) | |
| tree | 6e8c2c5a03839ca74ed9bd3f1f2bb0bde73ddeb6 /src/checker.cpp | |
| parent | 33dc12a61aa2040d5cd82c8a20e3d9ed82a8c9a3 (diff) | |
Allow `.asm`, `.s`, and `.S` as valid assembly file extensions
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 3301e2bf4..e32adedde 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -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", |