aboutsummaryrefslogtreecommitdiff
path: root/src/check_builtin.cpp
diff options
context:
space:
mode:
authorJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-16 22:26:24 +0200
committerJeroen van Rijn <Kelimion@users.noreply.github.com>2025-06-16 22:26:24 +0200
commit29d9a124919a12fa213ed3b752e6f0f00626294f (patch)
tree7278896c509123f10988af1a63c41d8595c7aaa4 /src/check_builtin.cpp
parentc4fb5ebf9b3283e0f4acfc3f6c354f30e66e8de2 (diff)
Add check_all scripts
Diffstat (limited to 'src/check_builtin.cpp')
-rw-r--r--src/check_builtin.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/check_builtin.cpp b/src/check_builtin.cpp
index bd265affc..9f9787b61 100644
--- a/src/check_builtin.cpp
+++ b/src/check_builtin.cpp
@@ -148,6 +148,11 @@ gb_internal bool does_require_msgSend_stret(Type *return_type) {
if (return_type == nullptr) {
return false;
}
+
+ if (build_context.metrics.os != TargetOs_darwin) {
+ return false;
+ }
+
if (build_context.metrics.arch == TargetArch_i386 || build_context.metrics.arch == TargetArch_amd64) {
i64 struct_limit = type_size_of(t_uintptr) << 1;
return type_size_of(return_type) > struct_limit;