summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/mixins/visualstudio.py
Commit message (Collapse)AuthorAgeFilesLines
* visualstudio: warning_level 0 should not map to /W1Xavier Claessens2020-07-221-1/+1
| | | | In every other compilers level 0 maps to no argument at all.
* msvc: Avoid spurious openmp link warningsPeter Harris2020-06-061-0/+3
| | | | | | | | | | | | The linker that comes with MSVC does not understand the /openmp flag. This results in a string of LINK : warning LNK4044: unrecognized option '/openmp'; ignored warnings, one for each static_library linked with an executable. Avoid this by only setting the linker openmp flag when the compiler is not MSVC.
* compilers: Error if invalid linker selectedDylan Baker2020-03-171-4/+0
|
* linkers: Move import_library_args to from VS compiler to linkerDylan Baker2020-03-091-4/+0
| | | | | | | This is the argument to name the implib when using the Visual Studio Linker. This is needed by LDC and DMD when using link.exe or lld-link.exe on windows, and is really a linker argument not a compiler argument.
* 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
* types: import typing as T (fixes #6333)Daniel Mensinger2020-01-081-41/+41
|
* 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
* Allow selecting the dynamic linkerDylan Baker2019-12-021-0/+4
| | | | | | | This uses the normal meson mechanisms, an LD environment variable or via cross/native files. Fixes: #6057
* Fix typos found by codespellWolfgang Stöggl2019-11-061-1/+1
| | | | - Typos were found by codespell v1.16.0
* MSVC: support -LIBPATHAleksey Gurtovoy2019-10-291-2/+4
| | | | Fixes #6101 (with a test), following up #5881
* Handle -idirafter in unix_args_to_nativeDaniel Mensinger2019-10-031-0/+12
|
* Correctly handle platform-specific LDFLAGS optionsAleksey Gurtovoy2019-09-271-0/+12
|
* compilers: Dispatch to dynamic linker classDylan Baker2019-08-141-68/+1
| | | | | Most of the cuda code is from Olexa Bilaniuk. Most of the PGI code is from Michael Hirsc
* compilers/mixins/visualstudio: Add type annotationsDylan Baker2019-07-151-106/+119
|
* compilers: Move the VisualStudioLikeCompiler class into mixinsDylan Baker2019-07-151-0/+411