Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build failure on Mac #12

Open
rckirby opened this issue Feb 6, 2023 · 3 comments
Open

Build failure on Mac #12

rckirby opened this issue Feb 6, 2023 · 3 comments

Comments

@rckirby
Copy link

rckirby commented Feb 6, 2023

Trying to pip install in a recently updated Firedrake install, I get an error message, with the critical failure being:

clang: error: the clang compiler does not support '-march=native'

Is there a way to work around this? I'd really like to get the performance that TinyASM offers on my patch problems!

@wence-
Copy link
Collaborator

wence- commented Feb 7, 2023

Remove -march=native (only makes sense on x86) from

set(CMAKE_CXX_FLAGS "-O3 -march=native -DLINUX -DNDEBUG")

@rckirby
Copy link
Author

rckirby commented Feb 7, 2023

Thanks, that got it to work. (Oddly, I didn't need to delete -DLINUX). Would it be possible to update the configuration to sniff out non-x86 (e.g. Mac Silicon) and set the flags accordingly?

@wence-
Copy link
Collaborator

wence- commented Feb 7, 2023

probably yes, but cmake is a closed book to me. You need to find a friendly C++ developer :).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants