1
0
Fork 0
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/node_modules/lzma-native/cflags.sh

17 lines
253 B
Bash

#!/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"