MATLAB has finally released an Apple Silicon version (R2022a beta and R2022b beta), so we can now start providing a native Apple pkg. With this commit (and the related preprocessor commit preprocessor!61 (merged)), I can compile Dynare from source without using Rosetta 2. The testsuite runs through except for tests that require additional MATLAB toolboxes (e.g. Optimization) as this is not released yet in the ARM Beta versions. Changes to the build script will be in another merge request once we have installed the new Apple Silicon runner.
To Do:
/usr/local
instead of /opt/homebrew
paths/Applications/MATLAB_R2022a_Beta.app/bin/mexext
needs some small changes to detect mexmaca64.