build: Log cargo and rustc version in build messages

This commit is contained in:
Kévin Commaille 2023-09-20 20:30:30 +02:00
parent de175f16ca
commit e0c30f451b
No known key found for this signature in database
GPG key ID: 29A48C1F03620416

View file

@ -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')