aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/intel.py
AgeCommit message (Collapse)AuthorFilesLines
2023-07-12Match the method signatures of parent classesTristan Partin1-2/+2
Names and types of some methods did not match their parent methods.
2023-07-12Replace some type comments with annotationsTristan Partin1-4/+4
2023-02-01treewide: add future annotations importEli Schwartz1-0/+1
2022-10-09compilers: Add optimization=plain optionJan Tojnar1-2/+4
https://github.com/mesonbuild/meson/pull/9287 changed the `optimization=0` to pass `-O0` to the compiler. This change is reasonable by itself but unfortunately, it breaks `buildtype=plain`, which promises that ā€œno extra build flags are usedā€. `buildtype=plain` is important for distros like NixOS, which manage compiler flags for optimization and hardening themselves. Letā€™s introduce a new optimization level that does nothing and set it as the default for `buildtype=plain`.
2022-01-10compilers: push the compiler id to a class variableDylan Baker1-4/+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
2021-09-14apply flake8 fixes for unused imports and missing importsEli Schwartz1-6/+1
2021-06-25Split compiler detection from EnvironmentDaniel Mensinger1-4/+1
This moves all the compiler detection logic into the new compilers.detect module. This dramatically reduces the size and complexity of Environment.
2021-01-04use OptionKey for builtin and base optionsDylan Baker1-2/+3
I would have prefered to do these seperatately, but they are combined in some cases, so it was much easier to convert them together. this eliminates the builtins_per_machine dict, as it's duplicated with the OptionKey's machine parameter.
2020-10-01compilers/icl: Fix pch usageDylan Baker1-0/+3
2020-10-01compilers/intel: use get_compiler_check_argsDylan Baker1-18/+9
Instead of trying to override the compiles() method, which gets skipped in a bunch of cases.
2020-09-30compilers: Use /Od for no-optimisation flag for Intel compilers on windowsIan Harvey1-2/+2
Intel compilers on Windows (and the Microsoft C++ compiler) use /Od to disable optimisation, not /O0.
2020-09-24compilers: Tell mypy that the compiler mixins are just thatDylan Baker1-6/+2
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/intel: make type safeDylan Baker1-11/+22
2020-09-24compilers/mixins/intel: Use the has_func_attribute_extra_args functionDylan Baker1-1/+3
Instead of putting that extra argument in the base compiles() class
2020-09-08typing: fully annotate arglistDaniel Mensinger1-2/+2
2020-01-08types: import typing as T (fixes #6333)Daniel Mensinger1-16/+16
2019-12-14intel/intel-cl: handle arguments in intel-specific wayMichael Hirsch, Ph.D1-20/+38
intel compiler's defaults are different enough from MSVC and GNU that it's necessary to set specific defaults for Intel compilers. This corrects/improves behaviors initially addressed in b1c8f765fa6e2a
2019-12-04intel/intel-cl: use appropriate buildtype optionsMichael Hirsch, Ph.D1-4/+39
This puts appropriate default options across buildtype for Intel and Intel-Cl compilers, for C, C++ and Fortran. Prior to this PR, the behavior of Intel compilers vs. GNUlike was not the same, in particular, debug traceback available by default for GNUlike compilers was not present with Intel compilers.
2019-10-07compilers: replace CompilerType with MachineInfoDylan Baker1-4/+2
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-14compilers: Dispatch to dynamic linker classDylan Baker1-3/+0
Most of the cuda code is from Olexa Bilaniuk. Most of the PGI code is from Michael Hirsc
2019-07-30intel-cl: readd missing importMichael Hirsch, Ph.D1-2/+1
2019-07-15compilers/mixins/intel: add type annotationsDylan Baker1-17/+24
2019-07-15compilers: Put Intel compiler classes into the mixins folderDylan Baker1-0/+134