Daniel Mensinger
09b53c534f
types: import typing as T ( fixes #6333 )
5 years ago
Dylan Baker
ee6e249f65
compilers: move language attribute to the class level
...
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.
5 years ago
Dylan Baker
ef9aeb188e
Allow selecting the dynamic linker
...
This uses the normal meson mechanisms, an LD environment variable or via
cross/native files.
Fixes : #6057
5 years ago
Dylan Baker
0c22798b1a
compilers: replace CompilerType with MachineInfo
...
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
5 years ago
Jussi Pakkanen
80ef6fd69f
Pass optimization flags to rustc properly. Closes : #5788 .
5 years ago
Dylan Baker
06dcbd50ee
compilers: Dispatch to dynamic linker class
...
Most of the cuda code is from Olexa Bilaniuk.
Most of the PGI code is from Michael Hirsc
5 years ago
Dylan Baker
b0f4ee2f94
compilers/rust: Proxy extra kwargs to Compiler.__init__
5 years ago
Jussi Pakkanen
d1dd6df37b
Increase logging for Rust CI failures.
6 years ago
John Ericson
07777e15d4
Purge `is_cross` and friends without changing user interfaces
...
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.
6 years ago
Jussi Pakkanen
8361da5c52
Fix setup so test suite runs with rustc + MSVC. Closes: 5099
6 years ago
Daniel Mensinger
9eca2e46a0
Added more compiler option support
6 years ago
Daniel Mensinger
9742927903
Absolute path generation refactoring
6 years ago
Jussi Pakkanen
d83f77109a
Convert buildtype to optimization and debug options ( #3489 )
6 years ago
Adam C. Foltzer
1d81efb03d
Add cross-compilation support for `rustc`
...
This patch is largely modeled on the relatively-straightforward code
for Fortran cross-compilation, so there might be some intricacies
missing.
7 years ago
Jussi Pakkanen
2269b7f60b
Add build_rpath as new property allowing people to specify rpath entries that are used in the build tree but will be removed on install.
8 years ago
Alistair Thomas
117f4ab8b5
Split out languages from compilers.py
8 years ago