Commit Graph

16 Commits

Author SHA1 Message Date
Jussi Pakkanen 3e6fbde94c Add thinlto support. Closes #7493. 2020-11-08 16:00:05 +02:00
Dylan Baker 413f4d87e9 compilers/cs: Add type annotations 2020-10-01 15:05:00 -07:00
Dylan Baker 682d22129c compilers: Tell mypy that the compiler mixins are just that
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-24 12:14:13 -07:00
Dylan Baker 6dc774f1b6 compilers/mixins/islinker: Make type safe 2020-09-24 12:14:13 -07:00
Nirbheek Chauhan 21da2c9040 Fix native builds on Windows ARM64 machines
I made the mistake of always selecting the debug CRT for compiler
checks on Windows 4 years ago:
https://github.com/mesonbuild/meson/pull/543
https://github.com/mesonbuild/meson/pull/614

The idea was to always build the tests with debugging enabled so that
the compiler doesn't optimize the tests away. But we stopped doing
that a while ago, and also the debug CRT has no relation to that.

We should select the CRT in the same way that we do for building
targets: based on the options.

On Windows ARM64, the debug CRT for ARM64 isn't always available, and
the release CRT is available only after installing the runtime
package. Without this, we will always try to pick the debug CRT even
when --buildtype=debugoptimized or release.
2020-07-13 15:28:38 +00:00
Dan Kegel d7235c5905 Let .pc files specify rpath.
Fixes #4027
2020-05-16 20:25:58 +00:00
John Ericson 3a4388e51d Fix legacy env var support with cross
Fix #3969
2020-03-23 17:51:36 +02:00
Dylan Baker b2f86c461b compilers/mixins/islinker: Add stubs for thread_*_flags 2020-02-27 16:35:02 -08:00
Dylan Baker fa3c25d279 compilers/mixins/islinker: Add missing method
In particular emcc needs this
2020-02-27 16:35:02 -08:00
Daniel Mensinger 09b53c534f types: import typing as T (fixes #6333) 2020-01-08 15:28:17 +01:00
Andrei Alexeyev c20d40789b Implement get_buildtype_linker_args in BasicLinkerIsCompilerMixin 2019-10-14 13:04:34 -07:00
Andrei Alexeyev 062a510a30 Implement get_asneeded_args in BasicLinkerIsCompilerMixin 2019-10-14 13:04:34 -07:00
Andrei Alexeyev 0845b7dd3d Implement get_linker_debug_crt_args in BasicLinkerIsCompilerMixin 2019-10-14 13:04:34 -07:00
Andrei Alexeyev 9488e4acfe Fix misnamed method in BasicLinkerIsCompilerMixin
get_allow_undefined_link_args is the compiler method
get_allow_undefined_args is the linker method
2019-10-14 13:04:34 -07:00
Aleksey Gurtovoy 75daed27bc mesonlib.split_args/quote_arg/join_args 2019-09-05 23:42:47 +03:00
Dylan Baker 38d588bc6e compilers/mixins: Add a module for mixins for compilers that are linkers
This is currently meant to solve problems for D's DMD compiler, however
it may be useful in other cases.
2019-08-14 13:13:23 -07:00