Jussi Pakkanen
e75e3976fa
Condense test directory names.
4 years ago
Jussi Pakkanen
9d1e747d17
Condense test directory names again.
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
Xavier Claessens
e4e5f981eb
Fix compute_int() when the value is -1
5 years ago
Jussi Pakkanen
f39600647d
Condense test directory names.
5 years ago
Jussi Pakkanen
972535a6ac
Condense test dirs.
6 years ago
Xavier Claessens
8a70e7cff5
Remove arbitrary [-1024,1024] limit in cross_compute_int()
...
Copy the algorithm used by autoconf.
It computes the upper and lower limits by starting at [-1,1] and
multiply by 2 at each iteration. This is even faster for small numbers
(the common case), for example it finds value 0 in just 2 compilations
where old algorithm would check for 1024, 512, ..., 0.
7 years ago
Jussi Pakkanen
578c3b6b6a
Renamed tests with the same number.
8 years ago
Haakon Sporsheim
1e2c914b3c
compiler: Fix compute_int and sizeof for cross compilation.
...
sizeof now uses compute_int which again binary searches for correct value.
8 years ago
Haakon Sporsheim
52f23f8c34
compiler: Add compute_int functionality.
...
Fixes #435
8 years ago
Nirbheek Chauhan
ae5a362950
tests/common: Run compiler checks for both C & C++
...
Without this we're just hoping that the C++ compiler behaves the same
way as the C compiler, which is not always true as demonstrated by
https://github.com/mesonbuild/meson/issues/958
8 years ago
Jussi Pakkanen
52b69b8939
Make sure that build and source subdirectories are always in search
...
path.
10 years ago
Jussi Pakkanen
cf6a395014
Spell out include_directories.
10 years ago
Jussi Pakkanen
d4284aae89
Renamed add_test to test.
12 years ago
Jussi Pakkanen
e453c408da
Can add extra #includes to sizeof checks.
12 years ago
Jussi Pakkanen
ae62e8ca11
Can detect sizes of expressions.
12 years ago