aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/compilers/vala.py
AgeCommit message (Collapse)AuthorFilesLines
2021-03-04mass rewrite of string formatting to use f-strings everywhereEli Schwartz1-2/+2
performed by running "pyupgrade --py36-plus" and committing the results
2021-01-04use OptionKey for builtin and base optionsDylan Baker1-2/+2
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.
2021-01-04use OptionKey for compiler_optionsDylan Baker1-2/+2
2020-10-01Compilers/vala: Add type annotationsDylan Baker1-24/+26
2020-09-24compilers: make is_cross part of the base Compiler classDylan Baker1-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.
2020-09-24compilers: put name_string method in base compilerDylan Baker1-3/+0
Every language had the exact same implementation
2020-03-29compilers: Fix accidental coredata mutationsOle André Vadla Ravnås1-2/+4
2020-01-08types: import typing as T (fixes #6333)Daniel Mensinger1-2/+2
2019-12-12compilers: move language attribute to the class levelDylan Baker1-1/+3
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.
2019-10-07compilers: replace CompilerType with MachineInfoDylan Baker1-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
2019-07-20ValaCompiler: only emit '--debug' in debug build.Jeremy Philippe1-1/+1
2019-06-09Purge `is_cross` and friends without changing user interfacesJohn Ericson1-14/+6
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.
2019-04-28Moved caching into a seperate functionDaniel Mensinger1-2/+2
2019-04-28Cache compile results in coredataDaniel Mensinger1-1/+1
2019-03-27Sanity check with external argsJohn Ericson1-3/+18
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.
2019-03-11Add static as keyword to find_libraryNiklas Claesson1-1/+1
2019-02-15Remove get_cross_extra_flagsJohn Ericson1-5/+2
This is no longer needed, we just remove conditionals around it.
2019-02-04vala: Support position-independent executablesCorentin Noël1-0/+6
2019-01-06Added more compiler option supportDaniel Mensinger1-0/+10
2019-01-06Absolute path generation refactoringDaniel Mensinger1-0/+3
2018-08-18Convert buildtype to optimization and debug options (#3489)Jussi Pakkanen1-0/+6
2018-04-11vala: Don't pass -o and -C at the same timeRico Tzschichholz1-2/+2
Fixes "warning: --output and -o have no effect when -C or --ccode is set" get_always_args() adds -C which is already disabling the direct compilation ability of valac for which -o is used.
2017-12-11Fix Vala thread flag breakage (#2756)Ernestas Kulik1-2/+2
2017-12-03vala: add stubs for thread flag methodsErnestas Kulik1-0/+6
As the Vala compiler does not define thread_flags() and thread_link_flags(), depending on threads in any capacity will cause Meson to fail. Fixes #2720.
2017-08-01Vala: enable colored warning and error output (#2142)Ben1-1/+7
2017-06-23Split out languages from compilers.pyAlistair Thomas1-0/+90