Yonggang Luo
75433bee74
Fixes meson test timeout on windows
...
```
2020-09-23T01:25:14.7849070Z
2020-09-23T01:25:14.7849592Z 1/5 Boost linktest TIMEOUT 30.16s
2020-09-23T01:25:14.7849811Z
2020-09-23T01:25:14.7850027Z --- command ---
2020-09-23T01:25:14.7850281Z 01:24:30 D:\a\1\s\b 125f976e40\linkedexe.exe
2020-09-23T01:25:14.7850561Z -------
2020-09-23T01:25:14.7850693Z
2020-09-23T01:25:14.7850947Z 2/5 Boost UTF test TIMEOUT 31.15s
2020-09-23T01:25:14.7851141Z
2020-09-23T01:25:14.7851347Z --- command ---
2020-09-23T01:25:14.7851580Z 01:24:30 D:\a\1\s\b 125f976e40\utf.exe
2020-09-23T01:25:14.7851862Z --- stdout ---
2020-09-23T01:25:14.7852065Z Running 1 test case...
2020-09-23T01:25:14.7852441Z
```
Signed-off-by: Yonggang Luo <luoyonggang@gmail.com>
4 years ago
Jussi Pakkanen
15761e78d2
Merge pull request #7776 from dcbaker/submit/zsh-additions
...
Add most missing zsh completions
4 years ago
Dylan Baker
dff40ca259
environment: Pass defines to clang based ObjC[++] compilers
...
mypy noticed that we were passing [] (instead of a dict or None) to the
ClangCompiler class in objc, which made me noticed that for C and C++ we
set the defines, but not for ObjC and ObjC++
4 years ago
Dylan Baker
da4c1945fc
compilers/objcpp: add type annotations
4 years ago
Dylan Baker
05df8320db
compilers/objc: Add type annotations
4 years ago
Dylan Baker
682d22129c
compilers: Tell mypy that the compiler mixins are just that
...
We do this by making the mixins inherit the Compiler class only when
mypy is examining the code (using some clever inheritance shenanigans).
This caught a bunch of issues, and also lets us delete a ton of code.
4 years ago
Dylan Baker
2c0fbe161d
compilers: make is_cross part of the base Compiler class
...
Every class needs to set this, so it should be part of the base. For
classes that require is_cross, the positional argument remains in their
signature. For those that don't, they just allow the base class to set
their value to it's default of False.
4 years ago
Dylan Baker
1592b7a800
compilers: make sanity_check_impl a protected method
...
It's an implementation detail after all
4 years ago
Dylan Baker
98416e7f75
compilers: put name_string method in base compiler
...
Every language had the exact same implementation
4 years ago
Dylan Baker
02658fdda4
run_mypy: compilers/c_function_attributes is already type safe
4 years ago
Dylan Baker
0d644ac87b
run_mypy: all of compilers/mixins is now type safe
4 years ago
Dylan Baker
fa1398f86c
compilers/mixins: make xc16 type safe
4 years ago
Dylan Baker
4911e8eef4
compilers/mixins: make visual studio type safe
4 years ago
Dylan Baker
b6c8b8a5be
compilers/mixins/pgi: Make type safe
4 years ago
Dylan Baker
6dc774f1b6
compilers/mixins/islinker: Make type safe
4 years ago
Dylan Baker
8ee1e6b768
compilers/mixins/intel: make type safe
4 years ago
Dylan Baker
a0a8ef567e
compilers/mixins/intel: Use the has_func_attribute_extra_args function
...
Instead of putting that extra argument in the base compiles() class
4 years ago
Dylan Baker
1e93d2875e
compilers/mixins/emscripten: make type safe
4 years ago
Dylan Baker
04a98baafb
compilers/mixins/elbrus: make type safe
4 years ago
Dylan Baker
bc532a8543
compilers/mixins: make compcert type safe
4 years ago
Dylan Baker
48a181866f
compilers/mixins/clang: Make type safe
4 years ago
Dylan Baker
4b52184dc6
compilers/mixings/gnu: make type safe
4 years ago
Dylan Baker
bb3fe3c451
compilers/mixins/clike: fix mypy issues
4 years ago
Dylan Baker
4cfddd1fe6
compilers/mixins/ccrx: make mypy safe
4 years ago
Dylan Baker
c93395bfc7
compilers/mixins/c2000: Make mypy safe
4 years ago
Dylan Baker
b7db3660a0
compilers/mixins/arm: make type safe
4 years ago
Dylan Baker
79d1ecd5bc
compilers/compilers: Fully type annotate
4 years ago
Dylan Baker
ce04a279ae
ast/introspection: Fix typing violation due to untyped functions
...
When we add type annotations to this in compilers this will break,
unless we've already filtered out the non-string arguments.
4 years ago
Dylan Baker
d326c87fe2
compilers: Use a distinct type for compile/link results
...
Currently we do some crazy hackery where we add extra properties to a
Popen object and return that. That's crazy. Especially since some of our
hackery is to delete attributes off of the Popen we don't want. Instead,
let's just have a discrete type that has exactly the properties we want.
4 years ago
Dylan Baker
1b63dcc531
zsh: Add completions for meson compile
4 years ago
Dylan Baker
9f893384db
zsh: add completions for subprojects
4 years ago
Dylan Baker
3afaa879ec
zsh: add wrap completions
...
This is still missing completions for promote, but I can't figure out
how to find the wraps in subprojects that are not in the parent project
when those projects haven't been fetched yet.
4 years ago
Dylan Baker
f0db3d3750
zsh: add missing arguments to meson test completions
...
This also reorders the options internally to match the output of meson
test --help, which makes it easier to diff
4 years ago
Dylan Baker
c6f7588afa
zsh: Add completions for meson init
4 years ago
Dylan Baker
a137cd0bfb
zsh: Add completions for meson install
4 years ago
Dylan Baker
8fa0548e08
pylint: turn on a few more errors
4 years ago
Dylan Baker
f342efd080
pylint: turn on bad-indentation error
...
and fix all of the bad indentation
4 years ago
Dylan Baker
3b292a04b8
pylint: turn on warnings for abstract classes
...
We're using these now, so having some error checking to make sure we
don't have paths were we're trying to instantiate an abstract class
would be good.
4 years ago
Dylan Baker
b034f8cf61
pylint: Turn on warnings for incorrect number of args
...
This catches some very real errors.
The one in scalapack is pretty silly actually, it's failing to figure
out that the exploded list is at least two arguments. However, the code
is actually clearer by not using a list and exploding it, so I've done
that and pylint is happy too.
4 years ago
Dylan Baker
80af160036
zsh: add meson dist completions
4 years ago
Dylan Baker
87248d9020
mdist: actually constrain the choices of the --formats option
...
Since we already have that list available.
4 years ago
Dylan Baker
ecefe45f8e
zsh: Add ability to complete depedency paths
...
using , separated syntax
4 years ago
Dylan Baker
670bc63fda
zsh: add missing options for meson introspect
4 years ago
Dylan Baker
f2572ea077
zsh: share common options between meson configure and meson setup
4 years ago
Dylan Baker
84d5233b5f
zsh: Add missing options for meson setup
4 years ago
Dylan Baker
250c4463b4
zsh: remove binaries that are not longer installed
4 years ago
Nirbheek Chauhan
94ea9d97be
docs: Clarify what literal strings mean [skip ci]
...
Someone on IRC was confused by this paragraph.
4 years ago
Jussi Pakkanen
13a8e1d26e
Improve docs for creating new wraps. [skip ci]
4 years ago
Dylan Baker
007ece4659
pylint: Turn on a few more good warnings
4 years ago
Dylan Baker
cb0265a6b2
pylint: Catch cases of `if len(container)` which should be replaced by `if container`
...
Unfortunately this doesn't catch other abuses of len(continauer) like,
`len(container) <comparator> 0`, see: https://github.com/PyCQA/pylint/issues/3751
4 years ago