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
On Windows, Meson can automatically run a script by parsing the interpreter out of the shebang line, which is pretty convenient. But unlike compilers, it does not seem that this can be overridden in a machine file. This is the first part of #12346
To Reproduce
With this meson.build:
project('shell')
example =find_program('example.sh')
result =run_command(example, capture: true, check: true)
message(result)
The Meson build system
Version: 1.2.1
Source dir: C:\Users\quant\shell
Build dir: C:\Users\quant\shell\build
Build type: native build
Project name: shell
Project version: undefined
Host machine cpu family: x86_64
Host machine cpu: x86_64
Program example.sh found: YES (foo C:\Users\quant\shell\example.sh)
meson.build:5:9: ERROR: Could not execute command `foo C:\Users\quant\shell\example.sh`.
A full log can be found at C:\Users\quant\shell\build\meson-logs\meson-log.txt
Expected behavior
Running the script directly with the shell from the native file works:
"c:\program files\git\bin\bash.exe" example.sh
Example
and I'd expect the same to happen in Meson.
system parameters
Is this a cross build or just a plain native build (for the same computer)? Native
what operating system? Windows 11
what Python version? Whatever is bundled in the MSI
what meson --version? 1.2.1
what ninja --version if it's a Ninja build? N/A
The text was updated successfully, but these errors were encountered:
Describe the bug
On Windows, Meson can automatically run a script by parsing the interpreter out of the shebang line, which is pretty convenient. But unlike compilers, it does not seem that this can be overridden in a machine file. This is the first part of #12346
To Reproduce
With this
meson.build
:this
example.sh
:and this
native.ini
:running as:
This fails to configure:
Expected behavior
Running the script directly with the shell from the native file works:
and I'd expect the same to happen in Meson.
system parameters
meson --version
? 1.2.1ninja --version
if it's a Ninja build? N/AThe text was updated successfully, but these errors were encountered: