Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
dcdb
dcdb
Commits
404bbbc4
Commit
404bbbc4
authored
May 24, 2013
by
Axel Auweter
Browse files
Fix cxx11 detection script.
parent
f4315eff
Changes
1
Hide whitespace changes
Inline
Side-by-side
CollectAgent/cxx11flags.sh
View file @
404bbbc4
...
...
@@ -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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment