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

Fix cxx11 detection script.

parent f4315eff
......@@ -5,7 +5,7 @@ CXX=$1
shift 1
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>
int main() {return 0;}
EOF
......@@ -27,6 +27,7 @@ fi
# Test c++ 11 flags for llvm clang
FLAGS="-std=c++11 -stdlib=libc++ "
test_flags $@
if [ "$?" -eq "0" ]; then
echo $FLAGS
exit 0
......
Markdown is supported
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