From f54b1f1e7727644fe15d3a17b484b6e9c9ca4024 Mon Sep 17 00:00:00 2001 From: Faith Ekstrand Date: Thu, 2 Nov 2023 08:17:35 -0500 Subject: [PATCH] meson: Set build.rust_std This is needed because meson currently makes rust_std part of the build environment and therefore per-arch. This is a bit nonsense but it's not too hard to work around. Part-of: --- meson.build | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/meson.build b/meson.build index 61d76eeab1f..04d89987311 100644 --- a/meson.build +++ b/meson.build @@ -24,7 +24,14 @@ project( version : files('VERSION'), license : 'MIT', meson_version : '>= 0.60', - default_options : ['buildtype=debugoptimized', 'b_ndebug=if-release', 'c_std=c11', 'cpp_std=c++17', 'rust_std=2021'] + default_options : [ + 'buildtype=debugoptimized', + 'b_ndebug=if-release', + 'c_std=c11', + 'cpp_std=c++17', + 'rust_std=2021', + 'build.rust_std=2021', + ], ) cc = meson.get_compiler('c')