Charles Brunet
4761e4cad9
Remove `get_buildtype_args` function
...
This is a first step to make `buildtype` a true alias of `debug` and
`optimization` options.
See #10808 .
Relates to:
- #11645
- #12096
- #5920
- #5814
- #8220
- #8493
- #9540
- #10487
- #12265
- #8308
- #8214
- #7194
- #11732
11 months ago
Eli Schwartz
1cf0ed0997
add missing imports for future annotations
1 year ago
Xavier Claessens
361f7484d2
Remove duplicated code to canonicalize b_vscrt option value
...
Add a common function that infers vscrt from buildtype in Compiler base
class.
1 year ago
Nomura
2b4002e60f
Metrowerks assembler should not inherit opt args from mixin
...
The Metrowerks assembler does not support optimization flags.
However, it received the same opt args as the Metrowerks C and C++
compilers, because it inherits from the 'MetrowerksCompiler' mixin.
This broke builds with opt level higher than 0 that used the Metrowerks
Assembler, as the latter received unsupported args. This is now fixed.
1 year ago
Tristan Partin
d4bcf05c39
Annotate naked fundamental Python types
...
Although mypy wasn't complaining, pyright was.
1 year ago
Tristan Partin
921c2370a7
Replace some type comments with annotations
1 year ago
Eli Schwartz
a1ef957e34
linkers: delay implementations import until detect is run
...
This saves on a 1500-line import at startup and may be skipped entirely
if no compiled languages are used. In exchange, we move the
implementation to a new file that is imported instead.
Followup to commit ab20eb5bbc
.
1 year ago
Nomura
c1fce8f60f
Initial support for Metrowerks Assembler
2 years ago
L. E. Segovia
e1de1bae09
yasm: Fix usage of incompatible optimization flags
...
Fixes #11726
2 years ago
Xavier Claessens
744e6ebe1d
nasm: Link with windows CRT libs when nasm is used as linker language
2 years ago
Simon McVittie
70286a93b0
asm: Use more backward-compatible invocation syntax for nasm
...
Before version 2.14.01, -MD required an output filename argument, with
`-MD outfile` equivalent to later versions' `-MD -MF outfile`. The older
syntax is still supported, and is still listed as the preferred syntax
in documentation.
Reference: https://github.com/netwide-assembler/nasm/commit/3475462e
Resolves: https://github.com/mesonbuild/meson/issues/11395
Signed-off-by: Simon McVittie <smcv@collabora.com>
2 years ago
Gijs Peskens
5a4168c410
Fix nasm when target has threads as added dependency
2 years ago
Ole André Vadla Ravnås
fa86a9d96d
nasm: Fix get_optimization_args()
2 years ago
Xavier Claessens
64a6969def
nasm: Implement get_crt_compile_args()
...
This fix a crash when using NASM on Windows.
2 years ago
Xavier Claessens
2961adb8c8
Compilers: Keep ccache and exelist separated
...
Only combine them in the Compiler base class, this will make easier to
run compiler without ccache.
2 years ago
Xavier Claessens
942aea230f
Add MASM compiler
...
ml and armasm are Microsoft's Macro Assembler, part of MSVC.
2 years ago
Xavier Claessens
d29ef2b128
Add yasm as fallback for nasm language
2 years ago
Xavier Claessens
01ee141339
Add NASM compiler
2 years ago