mirror of
https://github.com/notwa/rc
synced 2024-11-05 07:29:04 -08:00
use CPPFLAGS with the preprocessor
d'oh
This commit is contained in:
parent
d6111792a6
commit
a48c026a31
2 changed files with 3 additions and 3 deletions
|
@ -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
4
sh/pre
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue