aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/utils
AgeCommit message (Collapse)AuthorFilesLines
2022-11-17build: use the unified pickle loader to handle more edge casesEli Schwartz1-3/+8
We have divergent implementations of loading a pickled *.dat file. The Build class loader has a better error message. But the generic loader handles TypeError and ModuleNotFoundError. Merge the implementations, and use it for Build as well. Fixes #11051
2022-11-03squelch an EncodingWarning we don't care aboutEli Schwartz1-1/+1
We would like to use the default value (the one python urged us not to use), but without getting a warning for it. Luckily, we have the correct value already, so we can pass it manually to avoid the complaint.
2022-10-25Fix native compilation on ARM64 WindowsGustavoLCR2-4/+42
Move `detect_native_windows_arch()` to `mesonlib/universal.py` and rename it to `windows_detect_native_arch()` Use `IsWow64Process2()` to detect native architecture if available Use native `vcvarsarm64.bat` to initialize vsenv if available
2022-09-28Move classes used by scripts to their own moduleXavier Claessens7-0/+2674
Those classes are used by wrapper scripts and we should not have to import the rest of mesonlib, build.py, and all their dependencies for that. This renames mesonlib/ directory to utils/ and add a mesonlib.py module that imports everything from utils/ to not have to change `import mesonlib` everywhere. It allows to import utils.core without importing the rest of mesonlib.