aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/ccrx.py
AgeCommit message (Collapse)AuthorFilesLines
2023-12-23Remove `get_buildtype_args` functionCharles Brunet1-12/+0
This is a first step to make `buildtype` a true alias of `debug` and `optimization` options. See #10808. Relates to: - #11645 - #12096 - #5920 - #5814 - #8220 - #8493 - #9540 - #10487 - #12265 - #8308 - #8214 - #7194 - #11732
2023-12-13Use SPDX-License-Identifier consistentlyDylan Baker1-11/+1
This replaces all of the Apache blurbs at the start of each file with an `# SPDX-License-Identifier: Apache-2.0` string. It also fixes existing uses to be consistent in capitalization, and to be placed above any copyright notices. This removes nearly 3000 lines of boilerplate from the project (only python files), which no developer cares to look at. SPDX is in common use, particularly in the Linux kernel, and is the recommended format for Meson's own `project(license: )` field
2023-07-12Annotate naked fundamental Python typesTristan Partin1-1/+1
Although mypy wasn't complaining, pyright was.
2023-07-12Replace some type comments with annotationsTristan Partin1-13/+14
2022-11-27Add warning_level=everythingDavid Robillard1-1/+2
Adds a new maximum warning level that is roughly equivalent to "all warnings". This adds a way to use `/Wall` with MSVC (without the previous broken warning), `-Weverything` with clang, and almost all general warnings in GCC with strictness roughly equivalent to clang's `-Weverything`. The GCC case must be implemented by meson since GCC doesn't provide a similar option. To avoid maintenance headaches for meson, this warning level is defined objectively: all warnings are included except those that require specific values or are specific to particular language revisions. This warning level is mainly intended for new code, and it is expected (nearly guaranteed) that projects will need to add some suppressions to build cleanly with it. More commonly, it's just a handy way to occasionally take a look at what warnings are present with some compiler, in case anything interesting shows up you might want to enable in general. Since the warnings enabled at this level are inherently unstable with respect to compiler versions, it is intended for use by developers and not to be set as the default.
2022-08-24fix linker regression for compilers that don't accept LDFLAGS directlyEli Schwartz1-1/+3
e.g. ldc -- the compiler needs to process args before consuming them. Fixes #10693
2022-01-10compilers: push the compiler id to a class variableDylan Baker1-1/+2
It really is a per class value, and shouldn't be set per instance. It also allows us to get rid of useless constructors, including those breaking mypy
2020-10-01compilers: move get_dependency_gen_args to base CompilerDylan Baker1-4/+0
So that every subclass doesn't have to reimplement it. Especially since the Gnu implementation moved out of the CCompiler and into the GnuLikeCompiler mixin
2020-10-01compilers: fully type annotate the C compilersDylan Baker1-1/+1
2020-09-24compilers: Tell mypy that the compiler mixins are just thatDylan Baker1-1/+8
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.
2020-09-24compilers/mixins/ccrx: make mypy safeDylan Baker1-1/+6
2020-01-30-Fixed Renesas RX Family compiler to work with latest meson, updated ↵alanNz1-1/+7
cross-file, fixed assembly file use
2020-01-08types: import typing as T (fixes #6333)Daniel Mensinger1-16/+16
2019-10-20Fix all flake8 warningsDaniel Mensinger1-1/+1
2019-10-07compilers: replace CompilerType with MachineInfoDylan Baker1-3/+1
Now that the linkers are split out of the compilers this enum is only used to know what platform we're compiling for. Which is what the MachineInfo class is for
2019-08-20Merge pull request #5681 from dcbaker/dynamic-linker-splitJussi Pakkanen1-43/+0
split dynamic linker representations from compilers
2019-08-20Fix CCRX linking external dependenciesPhillip Cao1-0/+2
2019-08-14compilers: Dispatch to dynamic linker classDylan Baker1-43/+0
Most of the cuda code is from Olexa Bilaniuk. Most of the PGI code is from Michael Hirsc
2019-07-15compilers/mixins/ccrx: add type annotationsDylan Baker1-48/+59
2019-07-15compilers: move ccrx compiler abstraction into mixinsDylan Baker1-0/+148