diff options
author | Kai Wasserbäch <kai@dev.carbon-project.org> | 2019-08-17 10:59:43 +0200 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2019-08-20 05:39:19 +0000 |
commit | 1abe87383e1529a14498d70a0cf445728b9c338d (patch) | |
tree | faa347aadfdd04dbbf513d77dc66412453d8d8fc /scons | |
parent | d0ec5d38f6cff2e61d9e526423c0a016cc830d14 (diff) |
build: Bump C++ standard requirement to C++14 to fix FTBFS with LLVM 10
When building Mesa against a recent LLVM 10 with C++11, the build fails
if the AMD common code is built as well due to "std::index_sequence"
being undeclared.
LLVM requires a minimum of C++14.
Signed-off-by: Kai Wasserbäch <kai@dev.carbon-project.org>
Acked-by: Eric Engestrom <eric@engestrom.ch>
Diffstat (limited to 'scons')
-rw-r--r-- | scons/llvm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scons/llvm.py b/scons/llvm.py index c6d16a2bbf0..0c15b279aba 100644 --- a/scons/llvm.py +++ b/scons/llvm.py @@ -269,7 +269,7 @@ def generate(env): env.ParseConfig('%s --ldflags' % llvm_config) if llvm_version >= distutils.version.LooseVersion('3.5'): env.ParseConfig('%s --system-libs' % llvm_config) - env.Append(CXXFLAGS = ['-std=c++11']) + env.Append(CXXFLAGS = ['-std=c++14']) except OSError: print('scons: llvm-config version %s failed' % llvm_version) return |