Commit 404bbbc4 authored by Axel Auweter's avatar Axel Auweter
Browse files

Fix cxx11 detection script.

parent f4315eff
...@@ -5,7 +5,7 @@ CXX=$1 ...@@ -5,7 +5,7 @@ CXX=$1
shift 1 shift 1
FLAGS+=$* FLAGS+=$*
cat << EOF | $CXX -c $FLAGS -x c++ - -o /dev/null cat << EOF | $CXX -c $FLAGS -x c++ - -o /dev/null &>/dev/null
#include <system_error> #include <system_error>
int main() {return 0;} int main() {return 0;}
EOF EOF
...@@ -27,6 +27,7 @@ fi ...@@ -27,6 +27,7 @@ fi
# Test c++ 11 flags for llvm clang # Test c++ 11 flags for llvm clang
FLAGS="-std=c++11 -stdlib=libc++ " FLAGS="-std=c++11 -stdlib=libc++ "
test_flags $@
if [ "$?" -eq "0" ]; then if [ "$?" -eq "0" ]; then
echo $FLAGS echo $FLAGS
exit 0 exit 0
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment