FortranCInterface: name mangling fails with wrong macOS architecture
I observed that fortran name mangling fails in the following case:
- system is arm64 (MacBook M1)
- I want to build for x86_64 and use the gfortran from x86_64 brew (/opt/local/bin/gfortran)
- it fails when using an arm64 cmake (/opt/homebrew/bin/cmake)
homebrew stores x86_64 code in /opt/local and arm64 code in /opt/homebrew. Homebrew has no universal binaries.
This is the only issue with arm64 cmake for this purpose. Using an existing mangling file everything else works with the arm64 cmake.
Using x86_64 cmake (/opt/local/bin/cmake) works also.
It would be nice not have to change the cmake when changing build architecture.
BTW: compiling my app on M1 takes me < 3 min while it takes > 11 min on any Intel cpu I have access to (using 8 cores).
Edited by Brad King