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
5 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.
5 years ago
Jon Turney
1480fdfa9a
Add release note snippet
5 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.
5 years ago
Jon Turney
79b2eeb1ba
Identify machine in error accesing compiler object for missing language
...
Also add a failing test case for that error.
5 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.
5 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.
5 years ago
Daniel Mensinger
4cef45af21
cmake: fix shared_module dependency ( fixes #7715 )
5 years ago
Dylan Baker
4c2d0eb9bc
Merge pull request #7657 from mensinda/moreTyping
...
typing: Strict type annotations
5 years ago
Jussi Pakkanen
8d54b7bda3
Merge pull request #7428 from jon-turney/introspector-add-languages
...
Handle add_languages(native:) in introspector
5 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'.
5 years ago
Jon Turney
d712c86a62
Implement add_languages(native:) in introspector
5 years ago
Daniel Mensinger
057c77f7d0
typing: fixup for #7708
5 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.
5 years ago
Daniel Mensinger
4253bf6281
typing: Fix code review
5 years ago
Daniel Mensinger
1743f636fd
typing: fix LGTM bot error
5 years ago
Daniel Mensinger
e681235e5f
typing: fix code review
5 years ago
Daniel Mensinger
47373a2438
typing: get rid of most T.cast
5 years ago
Daniel Mensinger
23818fc5a3
typing: more fixes
5 years ago
Daniel Mensinger
1b19822a2d
typing: Fix templates
5 years ago
Daniel Mensinger
62f7642a61
typing: fix dependencies for new follow_imports
5 years ago
Daniel Mensinger
b57a355426
typing: use follow_imports = silent
5 years ago
Daniel Mensinger
5deb33b03c
typing: update run_mypy and mypy.ini
5 years ago
Daniel Mensinger
ca1878ffb5
typing: fix envconfig typing
5 years ago
Daniel Mensinger
3ae13d1dc2
typing: ignore error because of untyped decorator
5 years ago
Daniel Mensinger
0490372449
typing: fully annotate mintro and mtest
5 years ago
Daniel Mensinger
c637b913c9
typing: fully annotate mcompile, minit, and msetup
5 years ago
Daniel Mensinger
6b1b995b32
typing: fully annotate fs module
5 years ago
Daniel Mensinger
3dbfe8f75a
typing: fully annotate arglist
5 years ago
Daniel Mensinger
1217cf9a3b
typing: fully annotate boost and hdf5 deps
5 years ago
Daniel Mensinger
a4f4379c44
typing: fully annotate scripts
5 years ago
Daniel Mensinger
0d57e307b2
typing: fully annotate tools
5 years ago
Daniel Mensinger
449dd8e72a
typing: fully annotate wrap
5 years ago
Daniel Mensinger
fb9738b8c7
typing: fully annotate mparser.py
5 years ago
Daniel Mensinger
bb09ca9ad5
typing: fully annotate mesonlib.py
5 years ago
Daniel Mensinger
ce042f318e
typing: Add run_mypy.py for easier mypy invocation
5 years ago
Daniel Mensinger
ff28f3fa34
typing: completely type interpreterbase
5 years ago
Daniel Mensinger
3489442848
typing: completely type ast
5 years ago
Daniel Mensinger
9c1e72202d
typing: refactor dict handling
5 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>
5 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.
5 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
5 years ago
Nirbheek Chauhan
863492ae1a
Add some type hints to the ExternalProgram class
5 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
5 years ago
Daiki Ueno
7ad66e8a1a
docs/Users: add p11-kit [skip ci]
...
Signed-off-by: Daiki Ueno <ueno@gnu.org>
5 years ago
James Hilliard
646ae846be
backends: check external rpaths for all languages using ldflags
...
Signed-off-by: James Hilliard <james.hilliard1@gmail.com>
5 years ago
Jussi Pakkanen
97177bc12a
Merge pull request #7689 from scivision/fortran_inc
...
correct Fortran include algorithm
5 years ago
Michael Hirsch
011210ee14
ci: update to use latest recommendations
5 years ago
Michal Sojka
28f15390b9
doc: Add missing method arguments [skip ci]
...
Documentation of most methods mentions method arguments enclosed in
parentheses. Two methods are an exception and we fix them here to make
the manual more consistent.
5 years ago
Krzysztof Małysa
49b3182748
docs: Fix typo in Reference-manual.md [skip ci]
5 years ago