| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
| |
We need to remember its value when reconfiguring, but the Build object
is not reused, only coredata is.
This also makes CLI more consistent by allowing `-Dvsenv=true` syntax.
Fixes: #11309
|
|
|
|
| |
this fixes a bug introduced by #11528
|
|
|
|
|
| |
Exclude coredata from build.dat because it gets pickled separately
already.
|
|
|
|
|
| |
When giving full path to a target there is no reason to skip targets
from subprojects, the path can start with `subprojects/`.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This finds uses of deny-listed functions, which defaults to map and
filter. These functions should be replaced by comprehensions in
idiomatic python because:
1. comprehensions are more heavily optimized and are often faster
2. They avoid the need for lambdas in some cases, which make them
faster
3. you can do the equivalent in one statement rather than two, which
is faster
4. They're easier to read
5. if you need a concrete instance (ie, a list) then you don't have
to convert the iterator to a list afterwards
|
|
|
|
|
|
| |
There is no reason to wait 2s before starting the compilation command.
Fixes: #10698.
|
| |
|
|
|
|
|
|
|
|
|
| |
This command is magical and I hate it. Mostly because it seems people
have no clue what it does, and what it doesn't do.
Provide informational messages to the user indicating how it works, e.g.
for debugging. Point out if we ran vsenv before shelling out to the
backend.
|
|
|
|
| |
Fixes: #10221
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
In commit 928078982c8643bffd95a8da06a1b4494fe87e2b a good error message
about the directory not being a valid build directory, was replaced by a
worse message.
In commit abaa980436f53100041bd5535589bb1c42019bd6 the error message was
replaced by a traceback when trying to load the coredata before checking
if it was a build directory.
Revert back to using the helper function with the good error message.
Reorganize code so that we check basic things first, and do less work
before detecting errors.
Fixes #9584
|
|
|
|
| |
fixes #8721
|
| |
|
|
|
|
| |
Fixes: #9444
|
| |
|
| |
|
|
|
|
|
|
| |
`ninja -l` accepts a double. We should do the same.
Bug: https://bugs.gentoo.org/810655
|
| |
|
| |
|
|
|
|
| |
performed by running "pyupgrade --py36-plus" and committing the results
|
|
|
|
|
|
| |
Invalid escape sequences are deprecated and will be removed from a
future version of python. Use r"" to define them so they remain
readable.
|
|
|
|
|
|
| |
Because when you don't specify -C, this logging feels silly:
ninja: Entering directory `.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
meson compile itself doesn't permit GNU-style argument permutation, i.e.
TARGET to precede options, so why should we expect ninja to?
And indeed, ninja doesn't document support for this -- but it does
accept it anyway, which is confusing and results in people thinking it's
"supposed to" work.
However, if NINJA=samu then this is in fact enforced. samu does not
permit GNU-style argument permutation. As a result, the arguments passed
to mcompile are actively re-ordered before being passed to the
subprocess, and samu dies with a fatal error.
Fix ordering in mcompile.py and add a comment to warn future readers
that the order does, in fact, matter.
|
|
|
|
| |
Signed-off-by: Antonin DĂ©cimo <antonin.decimo@gmail.com>
|
|
|
|
|
|
|
| |
This patches takes the options work to it's logical conclusion: A single
flat dictionary of OptionKey: UserOptions. This allows us to simplify a
large number of cases, as we don't need to check if an option is in this
dict or that one (or any of 5 or 6, actually).
|
|
|
|
|
|
| |
The ninja path is already logged as part of configure. Logging it
again every time when using meson compile is overly verbose and
doesn't add much value for the user.
|
|
|
|
|
| |
We added the _pathlib module to work around defeciencies in python 3.5's
implementation, since we now rely on 3.6 lets drop this
|
| |
|
|
|
|
|
| |
- Remove platform from env so that msbuild does not try to compile
e.g. configuration debug|x86
|
|
|
|
|
|
| |
I wrote this to convert run_tests.get_backend_commands() over to the
new meson wrappers, but that turned out to be harder than I expected,
so just splitting this out for now.
|
|
|
|
|
| |
This bug not beeing caught in review is another reason for
adding strict typing support to meson.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
This allows the NINJA environment variable to support all the Windows special
cases, especially allowing an absolute path without extension.
Based on a patch by Yonggang Luo.
Fixes: #7659
Suggested-by: Nirbheek Chauhan <nirbheek@centricular.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
|
|
|
|
|
|
| |
This matches `meson test`, and there's really no other meaning that
could be attributed to this, since you would call `meson` to get the
version, not the `compile` sub-command.
|
|
|
|
|
| |
The `--verbose` has been added to ninja in 1.9.0 and we pretend that we have compatibility with Ninja 1.7+.
References: https://github.com/ninja-build/ninja/commit/bf7517505ad1def03e13bec2b4131399331bc5c4
|
| |
|
| |
|
|
|
|
|
| |
Closes: https://github.com/mesonbuild/meson/issues/7352
Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
With this running `meson compile` inside the builddir actually works,
and you don't have to do `meson compile -C .`
Clearly this was the intent since the option already has `default='.'`
|
|
This is tested working with both msbuild and ninja/samu. Since our xcode
support is pretty much broken I didn't bother.
Fixes #6670
|