aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/detect.py
AgeCommit message (Collapse)AuthorFilesLines
2022-04-30linkers: Add support for mold linkerFini Jastrow1-30/+30
[why] Support for the relatively new mold linker is missing. If someone wants to use mold as linker `LDFLAGS="-B/path/to/mold"` has to be added instead of the usual `CC_LD=mold meson ...` or `CXX_LD=mold meson ...`. [how] Allow `mold' as linker for clang and newer GCC versions (that versions that have support). The error message can be a bit off, because it is generic for all GNU like compilers, but I guess that is ok. (i.e. 'mold' is not listed as possible linker, even if it would be possible for the given compiler.) [note] GCC Version 12.0.1 is not sufficient to say `mold` is supported. The expected release with support will be 12.1.0. On the other hand people that use the un-released 12.0.1 will probably have built it from trunk. Allowing 12.0.1 is helping bleeding edge developers to use mold in Meson already now. Fixes: #9072 Signed-off-by: Fini Jastrow <ulf.fini.jastrow@desy.de>
2022-03-24Debian renamed cython to cython3, support bothXavier Claessens1-1/+1
2022-03-22compilers: fix mypy warning in Rust detectionDylan Baker1-0/+1
2022-03-12remove unused type ignore that mypy 0.940 no longer needsEli Schwartz1-1/+1
And now that it doesn't need it, it errors out when you use it.
2022-02-16flake8: fix various whitespace errors with badly aligned codeEli Schwartz1-2/+1
2022-02-16flake8: remove some redundant separatorsEli Schwartz1-1/+1
2022-02-16flake8: fix typoed whitespace surrounding tokensEli Schwartz1-1/+1
2022-02-02Genericise TI compiler and add MSP430 supportWilliam Toohey1-16/+32
2022-01-27mark regex string as raw string to fix invalid escapesEli Schwartz1-2/+2
2022-01-27flake8: fix indentation styleEli Schwartz1-23/+23
2022-01-03armltdclang: add support for ARM Ltd.'s `armclang` toolchainBen Boeckel1-0/+28
This is another toolchain also called `armclang`, but it is not a cross compiler like Keil's `armclang`. It is essentially the same as `clang` based on its interface and CMake's support of the toolchain. Use an `armltd` prefix for the compiler ID. Fixes: #7255
2021-10-31Add 64-bit paths to check for unsupported Watcom cl.exe clones.William D. Jones1-1/+4
2021-10-27fix various flake8 whitespace errorsEli Schwartz1-1/+1
2021-10-25Add sccache support.Jussi Pakkanen1-2/+7
2021-10-06Fix compiler detection for cl/clang-clJesse Natalie1-1/+1
If the compiler specified is a path to a compiler, the current detection is broken. It needs to use just the compiler name instead.
2021-10-04fix extra whitespaceEli Schwartz1-3/+0
discovered via flake8 --select E303
2021-09-29Fix mypy errorsmakise-homura1-5/+8
2021-09-29compilers: Select correct clang on e2k for C++ and ObjC++makise-homura1-2/+2
2021-09-29compilers: There is clang for e2k (elbrus) platform finallymakise-homura1-6/+4
2021-09-24compilers/rust: Add support for clippyDylan Baker1-8/+15
Clippy is a compiler wrapper for rust that provides an extra layer of linting. It's quite popular, but unfortunately doesn't provide the output of the compiler that it's wrapping in it's output, so we don't detect that clippy is rustc. This small patch adds a new compiler class (that is the Rustc class with a different id) and the necessary logic to detect that clippy is in fact rustc) Fixes: #8767
2021-09-24compilers/detect: use linker_always_args as well as linker exe_listDylan Baker1-1/+1
Otherwise we don't get critical arguments like -fuse=lld.
2021-09-24compilers/detect: avoid mutating rustc compiler listDylan Baker1-0/+2
Because mutation is bad.
2021-09-14apply flake8 fixes for unused imports and missing importsEli Schwartz1-1/+0
2021-09-10Implemented some missing operation for the NAG Fortran Compiler.Mat Cross1-3/+9
2021-07-05condense linesEli Schwartz1-2/+1
2021-07-05more f-strings too complex to be caught by pyupgradeEli Schwartz1-6/+6
2021-07-01C2000: linker uses now binary setting defined within the cross-filemiebka1-1/+1
2021-06-27Update detect.pyIan Harvey1-1/+1
Adjust Intel Fortran compiler detection to handle changes in ifort logo with the introduction of the oneapi toolkit. See #8338.
2021-06-25typing: Annotate compilers.detectDaniel Mensinger1-62/+73
2021-06-25Split compiler detection from EnvironmentDaniel Mensinger1-0/+1209
This moves all the compiler detection logic into the new compilers.detect module. This dramatically reduces the size and complexity of Environment.