1
0
mirror of https://github.com/musix-org/musix-oss synced 2024-09-20 10:51:56 +00:00
musix-oss/node_modules/lzma-native/cflags.sh
MatteZ02 5eb0264906 fix
2019-05-30 12:06:47 +03:00

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"