Created
April 29, 2016 17:14
-
-
Save mlabbe/47a78915ae42bc87fa32f4bba6a97b88 to your computer and use it in GitHub Desktop.
Dump all compiler defines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CC=/usr/bin/gcc | |
| if [[ $# -gt 0 ]] | |
| then | |
| CC=$1 | |
| fi | |
| touch ___temp.c | |
| $CC -dM -E ___temp.c | |
| rm ___temp.c |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment