aboutsummaryrefslogtreecommitdiff
path: root/src/checker.cpp
diff options
context:
space:
mode:
authorflysand7 <yyakut.ac@gmail.com>2023-10-15 19:32:11 +1100
committerflysand7 <yyakut.ac@gmail.com>2023-10-15 21:25:55 +1100
commita2a05e40e6cb57e0fe4c5d8c86815551044559d3 (patch)
tree293bf3a544ef5176333626a0340254aa761005e9 /src/checker.cpp
parent2783461e6954b8d2f10e8a9019eef009bd2f1169 (diff)
implemented foreign asm imports on linux/osx
Diffstat (limited to 'src/checker.cpp')
-rw-r--r--src/checker.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/checker.cpp b/src/checker.cpp
index 51cef9e2c..29f22bd9c 100644
--- a/src/checker.cpp
+++ b/src/checker.cpp
@@ -4733,8 +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 ||
- build_context.metrics.os != TargetOs_windows) {
+ if (build_context.metrics.arch != TargetArch_amd64) {
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]));
}