With GCC one is able to print out the specific flags that -march=native triggers. Is it possible to have Clang print similar information?
Asked
Active
Viewed 7,875 times
19
Community
- 1
- 1
Christopher Johnson
- 625
- 4
- 9
1 Answers
19
Instead of using the (non-existent in clang) -help=target flag, you can use echo | clang -E - -march=native -### to print out the compilation command. While this doesn't list the non-triggered flags and it's not pretty, it does list all the enabled flags.
Avi Ginsburg
- 9,897
- 3
- 26
- 54