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.
source share