diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2021-01-04 17:19:23 +0300 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.com> | 2021-01-04 18:04:52 +0300 |
commit | 0754c98f9dc44b772abd85276c8114ee32d072bc (patch) | |
tree | c79dee04f0adb606d16497eeebe61fba0f50569f | |
parent | 595616fe2d7a4c5404e5726eeca05ad0b9a19bec (diff) |
meson: check if cargo-c is installed
-rw-r--r-- | meson.build | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/meson.build b/meson.build index 088dcd392..162ca80fc 100644 --- a/meson.build +++ b/meson.build @@ -12,6 +12,11 @@ endif cargo = find_program('cargo', version:'>=1.40') 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() if system == 'windows' |