Eli Schwartz
27748f9cd1
fix linker regression for compilers that don't accept LDFLAGS directly
...
e.g. ldc -- the compiler needs to process args before consuming them.
Fixes #10693
3 years ago
Andreas Obergschwandtner
bfc4e958b4
Fix optimization level 's' for the TI compiler
3 years ago
William Toohey
b4d9b2551c
Genericise TI compiler and add MSP430 support
3 years ago
Dylan Baker
1209b8820b
compilers: push the compiler id to a class variable
...
It really is a per class value, and shouldn't be set per instance. It
also allows us to get rid of useless constructors, including those
breaking mypy
3 years ago
Nathanael Gray
c2956269f5
Add -g for debug builds.
3 years ago
Nathanael Gray
2bc3117408
Fix more code which appears copied from CcrxCompiler.
3 years ago
Eli Schwartz
8947352889
fix various flake8 whitespace errors
3 years ago
miebka
59fe80602e
C2000: Added depfile generation for incremental builds
3 years ago
miebka
f8c4752cbc
C2000 compiler also accepts *.cla files
4 years ago
Dylan Baker
e7f0890cb9
compilers: move get_dependency_gen_args to base Compiler
...
So that every subclass doesn't have to reimplement it. Especially since
the Gnu implementation moved out of the CCompiler and into the
GnuLikeCompiler mixin
4 years ago
Dylan Baker
96a1ae6dfe
compilers: fully type annotate the C compilers
4 years ago
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.
4 years ago
Dylan Baker
c93395bfc7
compilers/mixins/c2000: Make mypy safe
4 years ago
Dylan Baker
29ef4478df
compilers/d: Add b_ndebug support
...
D lang compilers have an option -release (or similar) which turns off
asserts, contracts, and other runtime type checking. This patch wires
that up to the b_ndebug flag.
Fixes #7082
5 years ago
alanNz
7460292810
-Add xc16 and c2000 C,Cpp toolchain support
5 years ago
alanNz
1682058dec
-Fixed Renesas RX Family compiler to work with latest meson, updated cross-file, fixed assembly file use
5 years ago
Daniel Mensinger
09b53c534f
types: import typing as T ( fixes #6333 )
5 years ago
Daniel Mensinger
80ec5e9d28
Fix all flake8 warnings
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
Phillip Cao
0384487fc5
Fix CCRX linking external dependencies
6 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
6 years ago
Dylan Baker
675874c303
compilers/mixins/ccrx: add type annotations
6 years ago
Dylan Baker
4d5c745bdc
compilers: move ccrx compiler abstraction into mixins
6 years ago