From f98c4d683791e34a077e628bdcac0a0ed32dc065 Mon Sep 17 00:00:00 2001 From: gingerBill Date: Mon, 19 Apr 2021 12:31:31 +0100 Subject: Improve the `Allocator` interface to support returning `Allocator_Error` to allow for safer calls Virtually all code (except for user-written custom allocators) should work as normal. Extra features will need to be added to make the current procedures support the `Allocator_Error` return value (akin to #optional_ok) --- src/build_settings.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/build_settings.cpp') diff --git a/src/build_settings.cpp b/src/build_settings.cpp index 8df045a82..a2e955178 100644 --- a/src/build_settings.cpp +++ b/src/build_settings.cpp @@ -838,7 +838,7 @@ void init_build_context(TargetMetrics *cross_target) { bc->link_flags = str_lit("-arch arm64 "); break; } - if (!bc->use_llvm_api) { + if ((bc->command_kind & Command__does_build) != 0 && !bc->use_llvm_api) { gb_printf_err("The arm64 architecture is only supported with -llvm-api\n");; gb_exit(1); } -- cgit v1.2.3