What flags -march = native are activated using Clang?

Using GCC, you can print specific flags that fire -march=native . Is it possible for Clang to print similar information?

+6
source share
1 answer

Instead of using the flag (nonexistent in clang) -help=target , you can use echo | clang -E - -march=native -### echo | clang -E - -march=native -### to print the compilation command. While it does not list unused flags, and it is not very, it lists all flags with it turned on.

+3
source

All Articles