Description
Describe the bug
When using a cross-file and forgetting the endian
parameter an unhandled exception is triggered.
To Reproduce
The crossfile:
[binaries]
c = 'arm-none-eabi-gcc'
ar = 'arm-none-eabi-ar'
size = 'arm-none-eabi-size'
[host_machine]
kernel = 'none'
cpu_family = 'arm'
cpu = 'cortex-m4'
command:
❯ meson setup build --cross-file arm-none-eabi.txt
Traceback (most recent call last):
File "mesonbuild\mesonmain.py", line 193, in run
File "mesonbuild\msetup.py", line 365, in run
File "mesonbuild\msetup.py", line 181, in generate
File "mesonbuild\environment.py", line 646, in __init__
File "mesonbuild\envconfig.py", line 284, in from_literal
KeyError: 'endian'
ERROR: Unhandled python exception
This is a Meson bug and should be reported!
Expected behavior
The error should be handled, and there should be no message saying to report the bug.
system parameters
- cross build
- Windows 11
- Python 3.13.1
meson --version
: 1.7.0ninja --version
1.12.1