OP2 / PyOP2

Framework for performance-portable parallel computations on unstructured meshes
https://op2.github.io/PyOP2
Other
80 stars 35 forks source link

PyOP2 compilation: add a pathway to compile with gcc on Mac. #664

Closed sv2518 closed 2 years ago

sv2518 commented 2 years ago

I tried to compile with PYOP2_CC=gcc-9 but the logic in compilation.py made me end up in the AnonymousCompiler which does not set any linker flags. I don't want to set these by hand so I added a MacGNUCompiler (which uses the the same flags as the clang compiler). (Thanks @JDBetteridge)