include custom env in devenv
now you can just meson devenv -C build and run whatever cargo commands in there manually instead of needing a run_command for each
This commit is contained in:
parent
6483f3dd17
commit
56a43b466b
1 changed files with 1 additions and 0 deletions
|
@ -52,6 +52,7 @@ endif
|
||||||
cargo = find_program('cargo')
|
cargo = find_program('cargo')
|
||||||
cargo_env = environment()
|
cargo_env = environment()
|
||||||
cargo_env.set('MESON_BUILD_ROOT', meson.project_build_root())
|
cargo_env.set('MESON_BUILD_ROOT', meson.project_build_root())
|
||||||
|
meson.add_devenv(cargo_env)
|
||||||
|
|
||||||
custom_target(
|
custom_target(
|
||||||
'cargo-build',
|
'cargo-build',
|
||||||
|
|
Loading…
Reference in a new issue