diff options
| author | gingerBill <gingerBill@users.noreply.github.com> | 2021-11-26 23:06:33 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-11-26 23:06:33 +0000 |
| commit | db9326f31d1e9c96705d713953e3cb8a0410c7e5 (patch) | |
| tree | c8c749afb2b159831cb51d806ea7fc1faf8e0bec /src/checker.cpp | |
| parent | 44897b5eace3327df93f431d4be33ad3e5fc3b0f (diff) | |
| parent | 27106dd9aec67ebf9e3c53572513051e8bc973c6 (diff) | |
Merge pull request #1332 from odin-lang/nasm-support
NASM Support
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 1c8f699e3..559b0ff86 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -4120,6 +4120,14 @@ void check_add_foreign_import_decl(CheckerContext *ctx, Ast *decl) { mpmc_enqueue(&ctx->info->required_foreign_imports_through_force_queue, e); add_entity_use(ctx, nullptr, e); } + + 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", + LIT(target_os_names[build_context.metrics.os]), LIT(target_arch_names[build_context.metrics.arch])); + } + } } // Returns true if a new package is present |