From 53de48f1c43ffc68cf8dbc74b2f5ef00f6b91784 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tapani=20P=C3=A4lli?= Date: Mon, 16 Jan 2023 13:09:23 +0200 Subject: [PATCH] intel/compiler: add cpp_std=c++17 when building tests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Otherwise build fails: "../src/intel/compiler/brw_private.h:40:4: note: ‘std::variant’ is only available from C++17 onwards" Fixes: 6c194ddd18f ("intel/compiler: Prepare SIMD selection helpers to handle different prog_datas") Signed-off-by: Tapani Pälli Reviewed-by: José Roberto de Souza Part-of: --- src/intel/compiler/meson.build | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/compiler/meson.build b/src/intel/compiler/meson.build index 65250f5..77b6ec6 100644 --- a/src/intel/compiler/meson.build +++ b/src/intel/compiler/meson.build @@ -208,6 +208,7 @@ if with_tests link_with : [ libintel_compiler, libintel_common, libintel_dev, libisl, ], + override_options: ['cpp_std=c++17'], dependencies : [idep_gtest, idep_nir, idep_mesautil], ), suite : ['intel'], -- 2.7.4