aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-04-19 12:31:31 +0100
committergingerBill <bill@gingerbill.org>2021-04-19 12:31:31 +0100
commitf98c4d683791e34a077e628bdcac0a0ed32dc065 (patch)
tree976ec0dc20463352aafb4833637ce24529cbcd90 /src
parenta4d0092b160cbdd0c5796f1f74e6f1407cb074b6 (diff)
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)
Diffstat (limited to 'src')
-rw-r--r--src/build_settings.cpp2
1 files changed, 1 insertions, 1 deletions
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);
}