Haha-Yes/node_modules/lzma-native/cflags.sh
2018-09-09 21:20:36 +02:00

16 lines
253 B
Bash
Executable file

#!/bin/sh
WANT_FLAGS="-std=c++11"
if [ x"$CXX" = x"" ]; then CXX=c++; fi
touch testsupp.c
for f in $WANT_FLAGS; do
if $CXX -c -o testsupp.o "$f" testsupp.c 2>&- >&- ; then
CFLAGS="$CFLAGS $f"
fi
done
rm -f testsupp.c testsupp.o
echo "$CFLAGS"