You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug 80c89a6 breaks passing extrenal_program to custom_targat:commad with additional environment variables.
Last working version meson:0.59.3
Expected behavior Interpreter:_func_custom_target_impl() should check if any element of the list passed as command is an instance of external_program instead of bluntly running _func_find_program on command[0].
system parameters
Os:ArchLinux
python:3.9.7
meson:0.60.0
The text was updated successfully, but these errors were encountered:
bartoszek
changed the title
[0.60.0] Custom target with command as list containing environment.
[0.60.0] Failed with custom_target with command as list containing environment.
Oct 26, 2021
bartoszek
changed the title
[0.60.0] Failed with custom_target with command as list containing environment.
[0.60.0] Failed custom_target with command as list containing environment.
Oct 26, 2021
You are explicitly not allowed to do this, command is NOT a unix shell command, it is an array containing a program followed by argv.
It will guarantee to break on any platform or backend where the backend (which may or may not be ninja) doesn't use the unix shell. Like Windows.
Since 0.57 the custom_target function accepts an env kwarg that does what you want. Alternatively you may use /usr/bin/env as the custom_target program and pass your env as argv to that.
Describe the bug
80c89a6 breaks passing
extrenal_program
tocustom_targat:commad
with additional environment variables.Last working version
meson:0.59.3
To Reproduce
Excerpt from
gimp
meson.build ( reference issue https://gitlab.gnome.org/GNOME/gimp/-/issues/7420 )meson setup error:
Expected behavior
Interpreter:_func_custom_target_impl()
should check if any element of the list passed ascommand
is an instance ofexternal_program
instead of bluntly running_func_find_program
oncommand[0]
.system parameters
The text was updated successfully, but these errors were encountered: