diff options
| author | Laytan Laats <laytanlaats@hotmail.com> | 2023-11-12 02:02:30 +0100 |
|---|---|---|
| committer | Laytan Laats <laytanlaats@hotmail.com> | 2023-11-15 18:06:27 +0100 |
| commit | 6b9202dfbf25a022287583197e57dbcd9159ea63 (patch) | |
| tree | 085f5f9607304b39281a330396e6451465117174 /src/checker.cpp | |
| parent | 70c1f9d0e19a4b97c03308de8f2b9c0c28ba4cf1 (diff) | |
-no-crt and assembly compilation on darwin
Diffstat (limited to 'src/checker.cpp')
| -rw-r--r-- | src/checker.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/checker.cpp b/src/checker.cpp index 29f22bd9c..0366cf05d 100644 --- a/src/checker.cpp +++ b/src/checker.cpp @@ -4733,7 +4733,7 @@ gb_internal void check_add_foreign_import_decl(CheckerContext *ctx, Ast *decl) { } if (has_asm_extension(fullpath)) { - if (build_context.metrics.arch != TargetArch_amd64) { + if (build_context.metrics.arch != TargetArch_amd64 && build_context.metrics.os != TargetOs_darwin) { 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])); } |