EMS-TU-Ilmenau / fastmat

A library to build up lazily evaluated expressions of linear transforms for efficient scientific computing.
https://fastmat.readthedocs.io
Apache License 2.0
24 stars 8 forks source link

Add appropriate handling of compiler options for Apple Silicon Arm to setup.py #110

Closed lpossner closed 1 year ago

lpossner commented 1 year ago

The -march and -mtune compiler options do not work with Apple clang on Apple Silicon Arm machines. Instead, the -mcpu compiler option should be used. The setup.py script now distinguishes between x86 and Apple-Silicon Arm and chooses the right compiler options.

lpossner commented 1 year ago

You are right, the argument should not be exclusively for the M1 chip. Since you made changes in the setup.py in your new commits, I will open a new pull request.