Skip to content
Snippets Groups Projects

Try -std=gnu++14 before c++14 (gh-280)

Merged Andreas Klöckner requested to merge gnupp-14-compiler-opt into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
+ 3
1
@@ -917,7 +917,9 @@ def cpp_flag(compiler):
The c++14 is prefered over c++11 (when it is available).
"""
if has_flag(compiler, '-std=c++14'):
if has_flag(compiler, '-std=gnu++14'):
return '-std=gnu++14'
elif has_flag(compiler, '-std=c++14'):
return '-std=c++14'
elif has_flag(compiler, '-std=c++11'):
return '-std=c++11'
Loading