summaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/swift.py
Commit message (Collapse)AuthorAgeFilesLines
* fix: Always explicitly set encoding for text files (fixes #8263)Daniel Mensinger2021-06-291-1/+1
|
* use OptionKey for compiler_optionsDylan Baker2021-01-041-1/+1
|
* compilers/swift: Add type annotationsDylan Baker2020-10-011-30/+37
|
* compilers: make is_cross part of the base Compiler classDylan Baker2020-09-241-3/+2
| | | | | | | Every class needs to set this, so it should be part of the base. For classes that require is_cross, the positional argument remains in their signature. For those that don't, they just allow the base class to set their value to it's default of False.
* compilers: put name_string method in base compilerDylan Baker2020-09-241-3/+0
| | | | Every language had the exact same implementation
* compilers: Fix accidental coredata mutationsOle André Vadla Ravnås2020-03-291-1/+2
|
* types: import typing as T (fixes #6333)Daniel Mensinger2020-01-081-2/+2
|
* compilers: move language attribute to the class levelDylan Baker2019-12-121-1/+1
| | | | | We know that if a compiler class inherits CCompiler it's language will be C, so doing this at the class level makes more sense.
* compilers: replace CompilerType with MachineInfoDylan Baker2019-10-071-2/+7
| | | | | | 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
* compilers: Move the compiler argument to proxy linker flags to the compiler ↵Dylan Baker2019-08-301-0/+3
| | | | | | | | | | | | 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.
* compilers: Dispatch to dynamic linker classDylan Baker2019-08-141-12/+0
| | | | | Most of the cuda code is from Olexa Bilaniuk. Most of the PGI code is from Michael Hirsc
* compilers/swift: Pass extra args to the Compiler constructorDylan Baker2019-08-141-2/+2
|
* Purge `is_cross` and friends without changing user interfacesJohn Ericson2019-06-091-9/+5
| | | | | | | | | | | | In most cases instead pass `for_machine`, the name of the relevant machines (what compilers target, what targets run on, etc). This allows us to use the cross code path in the native case, deduplicating the code. As one can see, environment got bigger as more information is kept structured there, while ninjabackend got a smaller. Overall a few amount of lines were added, but the hope is what's added is a lot simpler than what's removed.
* Sanity check with external argsJohn Ericson2019-03-271-2/+14
| | | | | | | | | Previously cross, but not native, external args were used. Then in d451a4bd97f827bb492fd0c0e357cb20b6056ed9 the cross special cases were removed, so external args are never used. This commit switches that so they are always used. Sanity checking works just the same as compiler checks like has header / has library.
* Remove get_cross_extra_flagsJohn Ericson2019-02-151-2/+1
| | | | This is no longer needed, we just remove conditionals around it.
* Added more compiler option supportDaniel Mensinger2019-01-061-1/+1
|
* Absolute path generation refactoringDaniel Mensinger2019-01-061-0/+7
|
* Added unit testDaniel Mensinger2019-01-061-1/+1
|
* Fixed list_target_files and list_targetsDaniel Mensinger2019-01-061-1/+1
|
* Convert buildtype to optimization and debug options (#3489)Jussi Pakkanen2018-08-181-1/+15
|
* Split out languages from compilers.pyAlistair Thomas2017-06-231-0/+99