cleong
cleong

Reputation: 7626

How do I check whether gcc supports -march=native?

I notice that gcc on OSX Snow Leopard doesn't support -march=native. What command can I put in the configure script to detect whether the option is available?

Upvotes: 3

Views: 510

Answers (1)

cleong
cleong

Reputation: 7626

The following seems to work:

echo "" | gcc -fsyntax-only -march=native -xc -

Upvotes: 3

Related Questions