From 2dd4a31f03c2fbf7504dca64a9f66c63fc37f018 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Fri, 3 May 2019 17:58:49 -0500 Subject: [PATCH] Try -std=gnu++14 before c++14 (https://github.com/inducer/pyopencl/issues/280) --- aksetup_helper.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/aksetup_helper.py b/aksetup_helper.py index e86f4cd..f90d085 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'