mirror of
https://github.com/trapexit/mergerfs.git
synced 2024-11-22 14:54:38 +08:00
use compiler's preprocessor rather than cpp explicitly
This commit is contained in:
parent
3244314310
commit
1539aca3d8
|
@ -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…
Reference in New Issue
Block a user