From bb67c6013a637804fde9634126677dff1517513c Mon Sep 17 00:00:00 2001 From: AmitSubhash Date: Fri, 3 Apr 2026 18:30:31 -0400 Subject: [PATCH] fix: add Apple Silicon (MACA64) support to GetSystemCommand MATLAB on Apple Silicon reports computer() as 'MACA64', which was not handled alongside 'MACI64'. This caused the mesher to fall back to the 32-bit binary (image2mesh_cgal-mac.exe) instead of the 64-bit one (image2mesh_cgal-mac64.exe). The 32-bit binary cannot run on macOS 11+. Tested on MATLAB R2025b, MacBook Pro M4 Pro, macOS 15. --- toolbox/meshing/tools/GetSystemCommand.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/toolbox/meshing/tools/GetSystemCommand.m b/toolbox/meshing/tools/GetSystemCommand.m index 82f94bb..5ac4c94 100644 --- a/toolbox/meshing/tools/GetSystemCommand.m +++ b/toolbox/meshing/tools/GetSystemCommand.m @@ -24,7 +24,7 @@ end systemcommand = which([command_name suff '.exe']); elseif ~isempty(strfind(os,'MAC')) % Mac OS - if strcmpi(os,'MACI64') + if strcmpi(os,'MACI64') || strcmpi(os,'MACA64') suff='64'; else suff='';