summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins
Commit message (Collapse)AuthorAgeFilesLines
...
* compilers: Use /Zi instead of /ZI with clang-clDylan Baker2020-01-281-4/+13
| | | | | | | Clang-cl doesn't support /ZI, so we need to use either /Zi or /Z7, which both do the same thing for clang-cl (though not for msvc) Fixes #6414
* compilers: Split ClangCL and MSVC mixinsDylan Baker2020-01-281-26/+65
| | | | | | Instead of checking the compiler id inside the VisualStudioLikeCompiler class, this creates two subclasses that each represent the divergent behavior of the two compilers
* Fix Sider errorsmakise-homura2020-01-271-1/+1
|
* Add missing functions to Elbrus compiler classmakise-homura2020-01-271-0/+11
|
* Fix missing 'defines' argumet for Elbrus compilermakise-homura2020-01-271-1/+1
| | | | ...But somehow it still remains in C++ compiler.
* types: import typing as T (fixes #6333)Daniel Mensinger2020-01-0811-209/+209
|
* Merge pull request #6065 from dcbaker/pass-options-to-linker-detectionJussi Pakkanen2019-12-171-0/+2
|\ | | | | Pass options to linker detection
| * Consider compiler arguments in linker detection logicDylan Baker2019-12-121-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | If a user passes -fuse-ld=gold to gcc or clang, they expect that they'll get ld.gold, not whatever the default is. Meson currently doesn't do that, because it doesn't pass these arguments to the linker detection logic. This patch fixes that. Another case that this is needed is with clang's --target option This is a bad solution, honestly, and it would be better to use $LD or a cross/native file but this is needed for backwards compatability. Fixes #6057
* | default inc dirs: Fix warning on MSYS (fixes #6336)Daniel Mensinger2019-12-151-5/+8
| |
* | intel/intel-cl: handle arguments in intel-specific wayMichael Hirsch, Ph.D2019-12-141-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
* Merge pull request #6207 from dcbaker/linker-optionJussi Pakkanen2019-12-112-0/+8
|\ | | | | Add a way to select the dynamic linker meson uses
| * Allow selecting the dynamic linkerDylan Baker2019-12-022-0/+8
| | | | | | | | | | | | | | This uses the normal meson mechanisms, an LD environment variable or via cross/native files. Fixes: #6057
* | lgtm: fix Multiple calls to __init__Daniel Mensinger2019-12-051-3/+3
| | | | | | | | | | | | | | Some slight refactoring for the dependency classes and I switched the elbrus compiler to the GnuLikeCompiler. This is also the correct use according to the documentation of GnuLikeCompiler.
* | lgtm: Fix redundant codeDaniel Mensinger2019-12-051-1/+0
| |
* | lgtm: fix missing raiseDaniel Mensinger2019-12-051-1/+1
| |
* | intel/intel-cl: use appropriate buildtype optionsMichael Hirsch, Ph.D2019-12-041-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.
* Fix compute_int() when the value is -1Xavier Claessens2019-11-211-1/+1
|
* Use strict function prototypesMichael Hirsch, Ph.D2019-11-181-19/+19
|
* Fix typos found by codespellWolfgang Stöggl2019-11-062-2/+2
| | | | - Typos were found by codespell v1.16.0
* MSVC: support -LIBPATHAleksey Gurtovoy2019-10-291-2/+4
| | | | Fixes #6101 (with a test), following up #5881
* Fix all flake8 warningsDaniel Mensinger2019-10-202-2/+1
|
* Fix according to deprecation of usage of non-standard escape sequencesmakise-homura2019-10-191-1/+1
|
* Add a proper way to get include dirs for elbrus compilermakise-homura2019-10-191-0/+13
|
* Make search of library dirs correctmakise-homura2019-10-191-2/+2
|
* default inc dirs: fix warning for unsupporte lang (fixes #6050)Daniel Mensinger2019-10-181-2/+9
|
* emscripten: fix false positives in linking testsAndrei Alexeyev2019-10-181-0/+13
|
* Refactor duplicate Emscripten code into a mixinAndrei Alexeyev2019-10-181-0/+33
|
* Implement get_buildtype_linker_args in BasicLinkerIsCompilerMixinAndrei Alexeyev2019-10-141-0/+3
|
* Implement get_asneeded_args in BasicLinkerIsCompilerMixinAndrei Alexeyev2019-10-141-0/+3
|
* Implement get_linker_debug_crt_args in BasicLinkerIsCompilerMixinAndrei Alexeyev2019-10-141-0/+3
|
* Fix misnamed method in BasicLinkerIsCompilerMixinAndrei Alexeyev2019-10-141-1/+1
| | | | | get_allow_undefined_link_args is the compiler method get_allow_undefined_args is the linker method
* Fix for issue 5355Michael Lenczewski2019-10-091-0/+12
| | | | | | | compiler.get_supported_arguments reports success for certain unsupported flags when using the gnu C/ObjC, C++/ObjC++ compilers. This fix reads the stderr on the has_arguments check to ensure the arguments really are supported and not valid for the language selection
* compilers: replace CompilerType with MachineInfoDylan Baker2019-10-077-38/+27
| | | | | | 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
* cache all gnulike_default_include_dirs invocationsDaniel Mensinger2019-10-031-5/+4
|
* Handle -idirafter in unix_args_to_nativeDaniel Mensinger2019-10-031-0/+12
|
* Correctly handle platform-specific LDFLAGS optionsAleksey Gurtovoy2019-09-271-0/+12
|
* CUDA support on WindowsAleksey Gurtovoy2019-09-241-0/+6
|
* mesonbuild: fix exception name.Jehan2019-09-231-1/+1
| | | | CrossNoRunException is in compilers module, not mesonlib.
* Merge pull request #5823 from scivision/linker-pgi-linuxJussi Pakkanen2019-09-051-1/+5
|\ | | | | PGI compiler fixes
| * PGI cannot accept -pthreadMichael Hirsch, Ph.D2019-09-051-0/+4
| |
| * PGI: use ar link wrapper on WindowsMichael Hirsch, Ph.D2019-09-051-1/+1
| |
* | mesonlib.split_args/quote_arg/join_argsAleksey Gurtovoy2019-09-051-2/+1
|/
* compilers: Move the compiler argument to proxy linker flags to the compiler ↵Dylan Baker2019-08-301-0/+4
| | | | | | | | | | | | class Instead of the DynamicLinker returning a hardcoded value like `-Wl,-foo`, it now is passed a value that could be '-Wl,', or could be something '-Xlinker=' This makes a few things cleaner, and will make it possible to fix using clang (not clang-cl) on windows, where it invokes either link.exe or lld-link.exe instead of a gnu-ld compatible linker.
* Fix gcc include dotDylan Baker2019-08-281-0/+2
|
* Merge pull request #5681 from dcbaker/dynamic-linker-splitJussi Pakkanen2019-08-208-373/+153
|\ | | | | split dynamic linker representations from compilers
| * compilers: Dispatch to dynamic linker classDylan Baker2019-08-147-370/+26
| | | | | | | | | | Most of the cuda code is from Olexa Bilaniuk. Most of the PGI code is from Michael Hirsc
| * compilers/mixins: Add a module for mixins for compilers that are linkersDylan Baker2019-08-141-0/+124
| | | | | | | | | | This is currently meant to solve problems for D's DMD compiler, however it may be useful in other cases.
| * compilers/mixins/pgi: simplify pic logicMichael Hirsch, Ph.D2019-08-141-3/+3
| |
* | Fix CCRX linking external dependenciesPhillip Cao2019-08-201-0/+2
|/
* Make ARM compilers work on Linux.Jussi Pakkanen2019-08-021-2/+2
|