Xavier Claessens
98d445a070
msubprojects: Support git subprojects with no wrap file
...
User could have cloned manually a subproject.
4 years ago
Xavier Claessens
3d443d84bd
msubprojects: Use less cryptic "git branch --show-current" command
...
It describes well what it does, compared to obscure "rev-parse".
4 years ago
Xavier Claessens
400a35e9ea
msubprojects: Add --type argument
...
It is often desired to only update git repositories and not pull
files from wrapdb.
4 years ago
Xavier Claessens
7ba0035db7
msubprojects: Use wrap.Resolver() to load all PackageDefinition
...
Besides being simpler, it has the advantage of picking directories that
don't have a .wrap file assotiated.
4 years ago
Nirbheek Chauhan
9fb839687b
minstall: Add version field to install data
...
And check the install data in the same way that mtest checks
serialisation data.
Fixes https://github.com/mesonbuild/meson/issues/2354
4 years ago
Nirbheek Chauhan
8bb3f16f09
mtest: Refactor test data checking
4 years ago
Nirbheek Chauhan
fb7099c6cf
mtest: Check version in the test data after loading
...
Same as coredata.dat and build.dat loading. Also, do not assert if
things change. Raise the appropriate exception.
Fixes https://github.com/mesonbuild/meson/issues/7613
4 years ago
Jon Turney
36600d7465
Add a test run in an environment which only has a cross compiler
...
Add '--cross-only' option to run_tests.py, so we can arrange not to run
tests in the 'native' suite when only a cross-compiler is available, as
they can't succeed.
4 years ago
Jon Turney
1480fdfa9a
Add release note snippet
4 years ago
Jon Turney
88e13c5f7c
Split tests out from 'common' which require a native compiler
...
Split out tests (and parts of tests) which require a native compiler
from the 'common' suite to a new suite called 'native', so we can
selectively avoid running those tests when only a cross-compiler is
available.
Also move test '211 cmake module' to 'cmake' suite, since it appears
that the way we use cmake requires a native compiler.
4 years ago
Jon Turney
79b2eeb1ba
Identify machine in error accesing compiler object for missing language
...
Also add a failing test case for that error.
4 years ago
Jon Turney
7996ca3d55
ninja: Generate all STATIC_LINKER rules
...
Don't stop generating STATIC_LINKER rules at the first MachineChoice
which isn't available (i.e. generate a STATIC_LINKER rule, even if
STATIC_LINKER_FOR_BUILD isn't needed)
Also warn about internal errors which lead to non-existent rule
references, rather than exploding with a KeyError.
4 years ago
Jon Turney
fc0f0df74b
Don't require build machine compilers for project() languages
...
This means that, in the common case of a simple meson.build which
doesn't contain any 'native: true' targets, we won't require a native
compiler when cross-compiling, without needing any changes in the
meson.build.
4 years ago
Daniel Mensinger
4cef45af21
cmake: fix shared_module dependency ( fixes #7715 )
4 years ago
Dylan Baker
4c2d0eb9bc
Merge pull request #7657 from mensinda/moreTyping
...
typing: Strict type annotations
4 years ago
Jussi Pakkanen
8d54b7bda3
Merge pull request #7428 from jon-turney/introspector-add-languages
...
Handle add_languages(native:) in introspector
4 years ago
Jon Turney
461c14b8b7
Add a test of add_languages(native:) introspection
...
If the meson.build doesn't use a native compiler, the native compiler
options (e.g. 'c_args') shouldn't be present in the output of 'meson
introspect --buildoptions'.
4 years ago
Jon Turney
d712c86a62
Implement add_languages(native:) in introspector
4 years ago
Daniel Mensinger
057c77f7d0
typing: fixup for #7708
4 years ago
Daniel Mensinger
8f95efe40b
typing: fixup of #7688
...
This bug not beeing caught in review is another reason for
adding strict typing support to meson.
4 years ago
Daniel Mensinger
4253bf6281
typing: Fix code review
4 years ago
Daniel Mensinger
1743f636fd
typing: fix LGTM bot error
4 years ago
Daniel Mensinger
e681235e5f
typing: fix code review
4 years ago
Daniel Mensinger
47373a2438
typing: get rid of most T.cast
4 years ago
Daniel Mensinger
23818fc5a3
typing: more fixes
4 years ago
Daniel Mensinger
1b19822a2d
typing: Fix templates
4 years ago
Daniel Mensinger
62f7642a61
typing: fix dependencies for new follow_imports
4 years ago
Daniel Mensinger
b57a355426
typing: use follow_imports = silent
4 years ago
Daniel Mensinger
5deb33b03c
typing: update run_mypy and mypy.ini
4 years ago
Daniel Mensinger
ca1878ffb5
typing: fix envconfig typing
4 years ago
Daniel Mensinger
3ae13d1dc2
typing: ignore error because of untyped decorator
4 years ago
Daniel Mensinger
0490372449
typing: fully annotate mintro and mtest
4 years ago
Daniel Mensinger
c637b913c9
typing: fully annotate mcompile, minit, and msetup
4 years ago
Daniel Mensinger
6b1b995b32
typing: fully annotate fs module
4 years ago
Daniel Mensinger
3dbfe8f75a
typing: fully annotate arglist
4 years ago
Daniel Mensinger
1217cf9a3b
typing: fully annotate boost and hdf5 deps
4 years ago
Daniel Mensinger
a4f4379c44
typing: fully annotate scripts
4 years ago
Daniel Mensinger
0d57e307b2
typing: fully annotate tools
4 years ago
Daniel Mensinger
449dd8e72a
typing: fully annotate wrap
4 years ago
Daniel Mensinger
fb9738b8c7
typing: fully annotate mparser.py
4 years ago
Daniel Mensinger
bb09ca9ad5
typing: fully annotate mesonlib.py
4 years ago
Daniel Mensinger
ce042f318e
typing: Add run_mypy.py for easier mypy invocation
4 years ago
Daniel Mensinger
ff28f3fa34
typing: completely type interpreterbase
4 years ago
Daniel Mensinger
3489442848
typing: completely type ast
4 years ago
Daniel Mensinger
9c1e72202d
typing: refactor dict handling
4 years ago
Paolo Bonzini
4ed5c3acbf
IntrospectInterpreter: allow dictionaries with nonconstant keys
...
Something like {a: foo} currently stymies the IntrospectionInterpreter and
breaks introspection of the source directory. The fix is just to walk the keys
and return a dummy dictionary.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
4 years ago
Jon Turney
f94e1eed97
Factor out an _add_languages() function in introspector
...
Factor out an _add_languages() function in introspector, rather than
calling func_add_languages() with arguments crafted to fake an
interpreter call.
4 years ago
Nirbheek Chauhan
eca4c6fcaf
minstall: Print a big FAILED when a script fails
...
We don't run any further scripts when this happens, so we need to
print a big error. The exit code was already correct.
Fixes https://github.com/mesonbuild/meson/issues/7627
4 years ago
Nirbheek Chauhan
863492ae1a
Add some type hints to the ExternalProgram class
4 years ago
Nirbheek Chauhan
757b838d81
Fix picking up tools with args from the env on Windows
...
This was a regression in https://github.com/mesonbuild/meson/pull/7059 .
We do not need to do a full search for all windows special cases. We
only want to check whether the command provided is actually a full
path to a script so we can add the interpreter.
Fixes https://github.com/mesonbuild/meson/issues/7645
4 years ago