Marc-André Lureau
451a32d1c8
meson: skip captured write if content didn't change
...
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
5 years ago
Dylan Baker
42d34095b4
compilers/mixins/pgi: Finish type annoations
5 years ago
Dylan Baker
fab47c5680
compilers: split pgi compiler out of compilers module
5 years ago
Dylan Baker
f574beffb4
compilers/mixins/elbrus: add type annotations and fix types
...
There is a pretty big error in here, trying to return a tuple
comperhension: (a for a in []) is not a tuple, it's a generator. This
has profound type annotations: generators don't support most tuple or
list methods, and they can only be iterated once. Beyond that tuples are
meant for heterogenous types, ie, position matters for types. I've
converted the output to a list in all cases.
5 years ago
Dylan Baker
5d685e7a5c
compilers: put elbrus in mixins
5 years ago
Dylan Baker
1b276598ce
compilers/mixins/clang: Add type annotations
5 years ago
Dylan Baker
bc4438b34f
compilers: Put clang mixin in a module
5 years ago
Dylan Baker
51b04204c9
compilers/mixins/arm: Add type annotations to armclang
5 years ago
Dylan Baker
e879992114
compilers: move ArmClang into mixins/arm.py
5 years ago
Dylan Baker
521e057d97
compilers/mixins/intel: add type annotations
5 years ago
Dylan Baker
b8368c1617
compilers: Put Intel compiler classes into the mixins folder
5 years ago
Dylan Baker
488e852e70
compilers/mixins/gnu: Add type annotations
5 years ago
Dylan Baker
cd5360821a
compilers: split gnu and gnulike compilers out of compilers
...
I debated a bit whether both classes really belong in the same module,
and decided that they do because the share a number of helpers.
5 years ago
Dylan Baker
d68969f169
compilers/mixins/visualstudio: Add type annotations
5 years ago
Dylan Baker
214ab455d3
compilers: Move the VisualStudioLikeCompiler class into mixins
5 years ago
Dylan Baker
51c66752a9
compilers/mixins/arm: Add type annotations
5 years ago
Dylan Baker
ef448b95ae
compilers: Move ArmCompiler to a mixin module
5 years ago
Dylan Baker
675874c303
compilers/mixins/ccrx: add type annotations
5 years ago
Dylan Baker
4d5c745bdc
compilers: move ccrx compiler abstraction into mixins
5 years ago
Dylan Baker
d483da46a9
compilers: Move clike into a mixins directory
...
The compilers module is rather large and confusing, with spaghetti
dependencies going every which way. I'm planning to start breaking out
the internal representations into a mixins submodule, for things that
shouldn't be required outside of the compilers module itself.
5 years ago
David Seifert
fcf27c2a2d
Do not fail on passing `-Werror=unused-parameter` from environment
5 years ago
Thibault Saunier
6813ef1e24
cmake: Handle disabling subprojects
5 years ago
Christoph Weiss
185238fdb4
Change meson test's build failure exit code to 125
5 years ago
Michael Hirsch, Ph.D
cb7d236696
pythonic file checks
5 years ago
myfreeweb
efea48788a
Ignore -D* and -fstack-protector* args for D compilers
...
Fixes #5369
5 years ago
Daniel Mensinger
5bd21a96b8
cmake: Fix dependencies with try_compile ( closes #5605 )
5 years ago
Norbert Nemec
555847f20f
Fix MSVC /link argument ordering ( #5598 )
...
* correct handling of LDFLAGS in find_library and sanity_check on MSVC (fixes #3629 )
The MSVC compiler requires all linker flags to be placed after the compiler flags, separated by a "/link" argument. This was already handled for regular linking commands, but not yet for the aforementioned special code paths.
* on MSVC, add /link separator between compiler and linker flags when it is missing
* avoid unnecessary /link argument
5 years ago
gjaeger1
30e42009c0
Adapting Boost Python library detection to Boost >= 1.67. Closes #4288 .
5 years ago
Xavier Claessens
d8b3af00ac
vs backend: commandrunner.py takes source dir first
5 years ago
Xavier Claessens
12d4031f52
Add alias_target() function
5 years ago
Norbert Nemec
748c9d817d
try IMPORTED_IMPLIB before IMPORTED_LOCATION for cmake dependencies
5 years ago
Jussi Pakkanen
724113849c
Warn if the user manually adds arguments we have builtin support for.
5 years ago
Norbert Nemec
4b25253bfd
Reference error code as hex value and improve comment
5 years ago
Norbert Nemec
62c975659f
diagnostics for missing DLLs on Windows in meson_exe.py
5 years ago
Charlie Barto
687bd31317
Make faster w defender atp
5 years ago
Michael Hirsch, Ph.D
8e0acae439
type hints @dcbaker
5 years ago
Michael Hirsch, Ph.D
c756d06fbb
add clang c_std=c18 alias
...
fix unit test skips for clang c18
correct unittests clang minimum version
cleanup unittest clang skip c_std
finesse unittest vs. clang version
5 years ago
Robin Kertels
96a6d621bf
Add (v)c++latest to VC_VERSION_MAP
5 years ago
Norbert Nemec
cc3993d1d4
move Gnu-specific feature '--print-search-dirs' to GnuLikeCompiler
5 years ago
Michael Hirsch, Ph.D
85cc424712
expanduser for tilde
5 years ago
Michael Hirsch, Ph.D
324c5b9aae
check that compiler name is not blank or empty
...
pep8
5 years ago
Michael Hirsch, Ph.D
041de5814f
BUGFIX: typo from 32e827dcdc
broke PGI compilers
5 years ago
Jussi Pakkanen
74611ecb1f
Fix unittests.
5 years ago
Marvin Scholz
5badc3912d
compilers: Add missing cflags when calling compiler in link mode
5 years ago
Marvin Scholz
976c303603
compilers: Fix missing cflags for function detection
...
Fix #5481
5 years ago
ePirat
b347f00dc0
Fix windres module argument flattening
5 years ago
Charlie Barto
1e182b51c6
Improve performance with windows defender ATP
5 years ago
Marvin Scholz
0bf5c27b64
env: Do not return empty tool env vars
...
A compiler or other tool with an empty string as name does not make
sense as it anyway can not be used and causes a failure later in
parse_entry.
Fix #5451
5 years ago
Abhishek Pandit-Subedi
968aee4f18
Return zero in cross_sizeof
...
There is an error when compiling with -Werror=return-type. Non void
functions must return valid values.
5 years ago
Dylan Baker
e3140fa2d2
dependencies/dev: Switch order of llvm dependency finders
...
Cmake ignores shared vs dynamic linking, and always returns static. This
went unnoticed, but results in regresssions for mesa. We need to fix
cmake, but with 0.51.1 due out shortly switching the order provides a
quick fix to restore expected functionality seems acceptable.
Fixes #5568
5 years ago