Browse Source

use compiler's preprocessor rather than cpp explicitly

pull/387/head
Antonio SJ Musumeci 8 years ago
parent
commit
1539aca3d8
  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