aboutsummaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2021-10-29Make environment objects hash deterministically.deterministichashJussi Pakkanen2-3/+17
2021-10-29Fix "meson compile" not activating vsenvXavier Claessens1-2/+3
setup_vsenv() was not propagating the return value, so build.need_vsenv was always False.
2021-10-28configure_file: upgrade deprecation message to FeatureDeprecatedEli Schwartz1-2/+2
install: false was only available since 0.50, so we should not warn people who support older versions to use something they cannot. Fortunately, we can do FeatureDeprecated for this -- and then it even gets summarized. Unfortunately, it's not well used, and certainly isn't here.
2021-10-28modules/gnome: use `install_dir = []` instead of falseDylan Baker1-1/+1
2021-10-28modules/gnome: fix missing install_dir, again, harderDylan Baker1-8/+10
It turns out this could be missing in GResource*Target as well, due mostly to the same problem, side effects of mutating a shared dictionary; though it could also happen with a specific set of keywords given and other omitted. Fixes #9350
2021-10-28mtest: accept very long linesPaolo Bonzini1-1/+8
Unless parsing TAP output, there is no strict requirement for "meson test" to process test output one line at a time; it simply looks nicer to not print a partial line if it can be avoided. However, in the case of extremely long lines StreamReader.readline can fail with a ValueError. Use readuntil('\n') instead and just process whatever pieces of the line it returns. Fixes: #8591 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-10-27modules/gnome: ensure that `install_dir` is setDylan Baker2-11/+17
The `mkenums` functions can have this unset if, and only if, the c file only variant is called. Due to side effects if the header file is generated then `install_dir` is ensured to be set for the c file. I have removed this side effect so that our tests actually cover this case. Fixes #9472
2021-10-27Fix add_install_script() ignoring install_tagXavier Claessens3-10/+16
Fixes: #9454
2021-10-27Changing xc16's linker from 'xc16-gcc.exe' to 'xc16-gcc'. Windows willgeorgev931-2/+2
still find the correct linker and now linux will be able to use its xc16-gcc as the linker.
2021-10-27test_clang_format: Do not assume meson source is in gitXavier Claessens1-0/+8
Fixes: #9437
2021-10-27Fix crash when getting cuda optionsXavier Claessens4-16/+17
We could have an OptionOverrideProxy of an OptionOverrideProxy, recursively. This fix is a minimal subset of the refactoring I did in https://github.com/mesonbuild/meson/pull/9394. Instead of faking UserOption we can just do a shallow copy of one and set a new value on it. Fixes: #9448
2021-10-27wrap: fix support for git < 2.28Eli Schwartz1-1/+1
both of these do the same thing: init -b <branchname> -c init.defaultBranch=<branchname> init The latter contributes to unreadably long lines of code, but has the advantage of working on older versions of git. Fixes #9449
2021-10-27Fix markdown list in Bultin-options.md [skip ci]Matthieu Gautier1-3/+4
The broken list was introduce by commit f72ee8e7 which fix too long lines.
2021-10-27remove public export of private functionEli Schwartz1-1/+0
2021-10-27do not repeat magic regexes for cmake define replacementsEli Schwartz1-2/+2
We already have this magic string in mesonlib, and this should always have used the cmake@ format which is identical to the meson format other than the regex.
2021-10-27Revert "mark a couple of typing-only imports as noqa, to appease pyflakes"Eli Schwartz2-6/+2
This reverts commit 6cc1b8441c0cf7428e52bdf1cd541ea830a4eb83. The latest version of pyflakes learned to detect that correctly.
2021-10-27fix various flake8 whitespace errorsEli Schwartz38-83/+81
2021-10-26remove unused importsEli Schwartz2-3/+1
2021-10-26fix lgtm.com "Use of the return value of a procedure"Eli Schwartz1-2/+3
we return _log even though this entire family of functions returns None, because a side effect of returning is that the other version of the function is not run. We can do that more obviously, using an else clause that doesn't attach meaning to return values.
2021-10-26unittests: use better assert methodsEli Schwartz3-25/+25
assertTrue and assertFalse are recommended against, if you can get a more specific assertion. And sometimes it is considerably shorter, for example we have a custom assertPathExists which we can take advantage of.
2021-10-26do not save unused variableEli Schwartz1-1/+1
Constructing a PackageDefinition is enough to assert that it raises an error.
2021-10-26remove unused variableEli Schwartz1-1/+1
It never made sense here to save self.init() which returns a string containing a log or stdout or something, and which was never actually used. Also we then overwrote the variable with a pathname...
2021-10-26remove dead code that is immediately overriddenEli Schwartz1-4/+0
In commit d932cd9fb48e8fecb167641c3d6bee8a68831c6e, we migrated to meson's own static linker definition, and the old code that hardcoded two of the possible exelists should have been removed in the process.
2021-10-26do not save variable when all we want is the side effect of popping itEli Schwartz1-1/+1
It's redefined on every loop iteration, and as the comment says, we just want to make sure the next loop skips a value.
2021-10-26interpreter: Revert old path joining behavior (fixes #9450)Daniel Mensinger2-1/+5
2021-10-26doc: Requires hotdoc >=0.13.7Xavier Claessens1-1/+3
Building documentation fails with older hotdoc versions.
2021-10-26message: Allow boolXavier Claessens2-5/+5
It has always been working even if not documented and there is no reason to not accept it. However, change "True/False" to "true/false" to be consistent with meson language. Fixes: #9436
2021-10-26dep.name(): return dependency name even if dependency is not foundThomas Heijligen4-6/+5
The dep.name() function schould always return the name of the dependency as documented. No matter if it was found or not. https://mesonbuild.com/Reference-manual_returned_dep.html#depfound
2021-10-25make sure the devenv powershell script is actually distributedEli Schwartz1-0/+3
It's not a python file, so it will never end up in the installed package unless we mark it as package_data. This causes problems for people using non-git checkouts. Fixes #9435 Closes #9443
2021-10-25Add sccache support.Jussi Pakkanen3-2/+31
2021-10-25mcompile: Load coredata first because it checks major versionXavier Claessens1-9/+3
Fixes: #9444
2021-10-25Fix typos in release notes for 0.60.0Nirbheek Chauhan1-2/+2
2021-10-24Bump version number for new development.Jussi Pakkanen1-1/+1
2021-10-24Create release notes page for 0.60.Jussi Pakkanen33-360/+399
2021-10-24Bump version number for release.0.60.0Jussi Pakkanen1-1/+2
2021-10-24Merge pull request #9377 from mensinda/jsonDocsJussi Pakkanen10-17/+511
docs: Add a JSON documentation backend
2021-10-24Add stdc++20 support for Visual Studio 2019 v16.11Moroz Oleg1-0/+4
fix #9242
2021-10-24interpreter: Fix missing featuer check (fixes #9425)Daniel Mensinger4-0/+24
2021-10-24cmake: Add support for the Linux CMake registry (fixes #9418)Daniel Mensinger1-0/+6
2021-10-24Remove temp files that the macOS installer builder leaves hanging.Jussi Pakkanen1-0/+6
2021-10-24Fix MSI creation with Python 3.10.Jussi Pakkanen1-0/+2
2021-10-21compilers/rust: fix typo in standard descriptionDylan Baker1-1/+1
2021-10-21compilers/rust: add support for the 2021 editionDylan Baker1-1/+1
2021-10-21Fix typosHofer-Julian4-4/+4
"seperator" -> "separator"
2021-10-21Add entries for new CUDA Toolkit versions.Olexa Bilaniuk1-0/+2
2021-10-20Add support for win-arm64 to MSVCGabor Kertesz1-1/+5
For Windows on Arm win-arm64 platform, the corresponding vcvars is called now.
2021-10-19Update version number for rc2.0.60.0rc2Jussi Pakkanen1-1/+1
2021-10-19Fix NamedTemporaryFile file reopen issue on Win #9412Gabor Kertesz1-2/+4
NamedTemporaryFile can't be opened by name on Windows. For Windows the created temporary bat file is now closed before passing to a subprocess, prevented from removal automatically upon close and deleted explicitly upon finish.
2021-10-18linkers: detect LLD when built with PACKAGE_VENDORPaolo Bonzini1-3/+3
https://github.com/Homebrew/homebrew-core/commit/e7c972b6062af753e564104e58d1fa20c0d1ad7a added PACKAGE_VENDOR to lld, causing the -v output to start with "Homebrew LLD" rather than just "LLD". Meson no longer detects it and fails the test_ld_environment_variable_lld unit test. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-10-18mtest: limit "magic" CTRL+C behavior to process group leadersPaolo Bonzini1-1/+4
If meson is not a process group leader, a SIGINT will be delivered also to its parent process (and possibly other processes). The parent process then will probably exit and mtest will continue running in the background, without any way to interrupt the run completely. To fix this, treat SIGINT and SIGTERM the same way unless mtest is a process group leader. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>