New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add env: argument to custom_target, run_target, run_command #2723
Comments
In the short term use command: [
find_program('env'),
'BABL_PATH=' + join_paths(meson.build_root(), 'extensions'),
babl_html_dump
] |
|
Great, that also allows to split the commands from a single string to multiple strings. (and even use '&&' !) |
|
Apparently, the issue is that ninja does not have a way to set environment variables in cross-platform way: #541 (comment) |
- This will help when custom_target will support custom environment
mesonbuild/meson#2723
|
Dup of #266 |
|
@gdesmott Not exactly, mine is about run_target too. |
Looking at what's been done already, it seems a different github issue/PR is needed for every command. |
|
Had a quick look at this. For the simple case of meson/mesonbuild/interpreter.py Line 169 in 33d8220
|
The environment variables can't be passed through an env: argument yet (meson#2723), use 'env' as suggested in: mesonbuild/meson#2723 (comment) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
The environment variables can't be passed through an env: argument yet (meson#2723), use 'env' as suggested in: mesonbuild/meson#2723 (comment) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
The env argument available for tests would be really useful for custom_targets too.
would be changed to
The text was updated successfully, but these errors were encountered: