Browse Source

Merge pull request #387 from trapexit/cppfind

use compiler's preprocessor rather than cpp explicitly
pull/388/head
Antonio SJ Musumeci 8 years ago
committed by GitHub
parent
commit
776ff3e3f1
  1. 3
      tools/cppfind

3
tools/cppfind

@ -1,7 +1,8 @@
#!/bin/sh #!/bin/sh
CXX="${CXX:-c++}"
FUSE_CFLAGS="$(pkg-config --cflags fuse) -DFUSE_USE_VERSION=29" FUSE_CFLAGS="$(pkg-config --cflags fuse) -DFUSE_USE_VERSION=29"
echo "#include <fuse.h>" | cpp ${FUSE_CFLAGS} | grep "${1}" > /dev/null
echo "#include <fuse.h>" | ${CXX} -E ${FUSE_CFLAGS} - | grep "${1}" > /dev/null
[ "$?" != "0" ]; echo $? [ "$?" != "0" ]; echo $?
Loading…
Cancel
Save