diff options
| author | Jeroen van Rijn <Kelimion@users.noreply.github.com> | 2025-06-16 23:52:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-16 23:52:39 +0200 |
| commit | 91b5cec8e82b93941fa236fd6ccf59e1e63dccb5 (patch) | |
| tree | bcae6051b9cf881cbb8ce06ae0f482e66dc0b3bb /src | |
| parent | c4fb5ebf9b3283e0f4acfc3f6c354f30e66e8de2 (diff) | |
| parent | 6d01aa90690cc8f4270669a6411f6cd15a90947b (diff) | |
Merge pull request #5349 from Kelimion/check_all
Check all
Diffstat (limited to 'src')
| -rw-r--r-- | src/check_builtin.cpp | 5 |
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; |