Is it possible to use MATLAB on macOS to build a mex file for running on linux (with the .mexa64
extension)? Suppose that I have an appropriate compiler such as GCC. How would I do this? I couldn't find any useful arguments in mex
.
I understand building for a different platform would require a full toolchain, but I'm wondering if MATLAB has one already under the hood.