meson: check if cargo-c is installed

This commit is contained in:
Guillaume Desmottes 2021-01-04 15:19:23 +01:00
parent 595616fe2d
commit 0754c98f9d

View file

@ -12,6 +12,11 @@ endif
cargo = find_program('cargo', version:'>=1.40') cargo = find_program('cargo', version:'>=1.40')
cargo_wrapper = find_program('cargo_wrapper.py') cargo_wrapper = find_program('cargo_wrapper.py')
cargo_c = find_program('cargo-cbuild', required: false)
if not cargo_c.found()
error('cargo-c missing, install it with: \'cargo install cargo-c\'')
endif
system = build_machine.system() system = build_machine.system()
if system == 'windows' if system == 'windows'