From c30359572437a3b3f61cb13a65be963564fded23 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 3 May 2019 17:56:45 -0500 Subject: [PATCH] Try -std=gnu++14 before c++14 (gh-280) --- aksetup_helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aksetup_helper.py b/aksetup_helper.py index e86f4cd8..f90d0852 100644 --- a/aksetup_helper.py +++ b/aksetup_helper.py @@ -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' -- GitLab