build: Log cargo and rustc version in build messages
This commit is contained in:
parent
de175f16ca
commit
e0c30f451b
1 changed files with 4 additions and 0 deletions
|
@ -41,6 +41,10 @@ glib_compile_schemas = find_program('glib-compile-schemas', required: true)
|
||||||
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
desktop_file_validate = find_program('desktop-file-validate', required: false)
|
||||||
appstream_util = find_program('appstream-util', required: false)
|
appstream_util = find_program('appstream-util', required: false)
|
||||||
cargo = find_program('cargo', required: true)
|
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')
|
prefix = get_option('prefix')
|
||||||
bindir = prefix / get_option('bindir')
|
bindir = prefix / get_option('bindir')
|
||||||
|
|
Loading…
Reference in a new issue