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
Jussi Pakkanen
17bfbb99e5
Condense test dirs.
6 years ago
Nirbheek Chauhan
ef81a013a5
cross: Add compiler cross_args after normal args
...
This way they override all other arguments. This matches the order of
link arguments too.
Note that this means -I flags will come in afterwards and not override
anything else, but this is correct since that's how toolchain paths
work normally too -- they are searched last.
Closes https://github.com/mesonbuild/meson/issues/3089
7 years ago
Jussi Pakkanen
c72b4e1b9c
Imported Debian fixes by Matthias Klose.
7 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
a4db467669
Use GCC 7 for cross compilation tests.
7 years ago
Nirbheek Chauhan
42267f2afa
Always pass cross-file {lang}_args to compiler checks
...
Includes a test for this that will only run on the CI.
Closes https://github.com/mesonbuild/meson/issues/1665
8 years ago
Jussi Pakkanen
2b65083463
Fix cross test and run them if a cross compiler is available.
8 years ago
Jussi Pakkanen
572ce0f451
Added cpu family property to system information.
9 years ago
Jussi Pakkanen
2e3bd006d3
Converted alignment check to work also when cross compiling.
9 years ago
Jussi Pakkanen
ad5795ed2e
Converted sizeof check to work also when cross compiling.
9 years ago
Jussi Pakkanen
78739afd9c
Use system() instead of name() which is a confusing term.
9 years ago
Jussi Pakkanen
463d08d545
Now host_machine, build_machine and target_machine are properly separated and return correct values.
9 years ago
Jussi Pakkanen
eb3cdb6f8d
Changed cross compilation file to new format.
9 years ago
Jussi Pakkanen
bf02849d59
Use cross file's pkgconfig binary when cross compiling. Closes #138 .
10 years ago
Jussi Pakkanen
6eb4474349
Fix ARM strip binary path.
11 years ago
Jussi Pakkanen
52ed7fd8f8
Can build both cross and native binaries at the same time.
11 years ago
Jussi Pakkanen
195fb0d967
Get alignment from cross file.
11 years ago
Jussi Pakkanen
21e4fcc6b0
Get has_function from cross file.
11 years ago
Jussi Pakkanen
2117814826
Get sizeof info from cross file if it exists and write an error if it can not be determined.
11 years ago