From 29d9a124919a12fa213ed3b752e6f0f00626294f Mon Sep 17 00:00:00 2001 From: Jeroen van Rijn Date: Mon, 16 Jun 2025 22:26:24 +0200 Subject: Add check_all scripts --- src/check_builtin.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/check_builtin.cpp') 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; -- cgit v1.2.3