From e0c30f451bdb13404e5af6241186d45d2caecd35 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Commaille?= Date: Wed, 20 Sep 2023 20:30:30 +0200 Subject: [PATCH] build: Log cargo and rustc version in build messages --- meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.build index bba3ed0a..2248e90c 100644 --- a/meson.build +++ b/meson.build @@ -41,6 +41,10 @@ glib_compile_schemas = find_program('glib-compile-schemas', required: true) desktop_file_validate = find_program('desktop-file-validate', required: false) appstream_util = find_program('appstream-util', required: false) cargo = find_program('cargo', required: true) +cargo_version = run_command(cargo, '--version', check: true).stdout().strip() +message(cargo_version) +rustc_version = run_command('rustc', '--version', check: true).stdout().strip() +message(rustc_version) prefix = get_option('prefix') bindir = prefix / get_option('bindir')