1
0
Fork 0
mirror of https://github.com/notwa/rc synced 2024-11-05 04:39:03 -08:00

use CPPFLAGS with the preprocessor

d'oh
This commit is contained in:
Connor Olding 2019-05-27 11:23:58 +02:00
parent d6111792a6
commit a48c026a31
2 changed files with 3 additions and 3 deletions

View file

@ -372,7 +372,7 @@ $
### [pre](/sh/pre)
(bash/zsh) dumps all the #defines that `$CC $CFLAGS $LDFLAGS` would result in.
(bash/zsh) dumps all the #defines that `$CC $CPPFLAGS $CFLAGS $LDFLAGS` would result in.
```
$ pre | shuf | head -10

4
sh/pre
View file

@ -1,6 +1,6 @@
#!/usr/bin/env bash
if [ -n "${ZSH_VERSION:-}" ]; then
$CC -dM -E - $=CFLAGS $=LDFLAGS < /dev/null
$CC -dM -E - $=CPPFLAGS $=CFLAGS $=LDFLAGS < /dev/null
else
$CC -dM -E - $CFLAGS $LDFLAGS < /dev/null
$CC -dM -E - $CPPFLAGS $CFLAGS $LDFLAGS < /dev/null
fi