mirror of
https://github.com/Ed94/Odin.git
synced 2026-06-23 14:14:59 -07:00
implemented foreign asm imports on linux/osx
This commit is contained in:
+1
-2
@@ -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]));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user