intel/compiler: add cpp_std=c++17 when building tests
authorTapani Pälli <tapani.palli@intel.com>
Mon, 16 Jan 2023 11:09:23 +0000 (13:09 +0200)
committerMarge Bot <emma+marge@anholt.net>
Tue, 17 Jan 2023 13:58:03 +0000 (13:58 +0000)
commit53de48f1c43ffc68cf8dbc74b2f5ef00f6b91784
treeeba7b5e9fc251805d18b893724417786a9ea2bc3
parentd59e5aa08fad03a426f840e20701723d99f382c0
intel/compiler: add cpp_std=c++17 when building tests

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 <tapani.palli@intel.com>
Reviewed-by: José Roberto de Souza <jose.souza@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20725>
src/intel/compiler/meson.build