mirror of
https://github.com/trapexit/mergerfs.git
synced 2026-10-26 19:01:56 -04:00
Merge pull request #387 from trapexit/cppfind
use compiler's preprocessor rather than cpp explicitly
This commit is contained in:
commit
776ff3e3f1
1 changed files with 2 additions and 1 deletions
|
|
@ -1,7 +1,8 @@
|
|||
#!/bin/sh
|
||||
|
||||
CXX="${CXX:-c++}"
|
||||
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 $?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue