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
Dylan Baker
67d1948005
tests: add sunos to get define
5 years ago
Jussi Pakkanen
f39600647d
Condense test directory names.
5 years ago
Antoine Jacoutot
85ca6adfb4
test: fix "get define" on OpenBSD
...
Same as with NetBSD, OpenBSD doesn't provide a ZLIB_VER_MAJOR but has
ZLIB_VERSION instead.
6 years ago
Jussi Pakkanen
6c76ac8017
Handle strings in cross file args. Closes #4671 .
6 years ago
Dylan Baker
e9ba04537f
Add gnu hurd to *_machine information
6 years ago
Jussi Pakkanen
972535a6ac
Condense test dirs.
6 years ago
Christoph Behle
47c3a26915
Always apply concatenate_string_literal.
...
get_define always applies concatenate_string_literal to its result.
Remove kwarg concatenate_string_literal from get_define.
7 years ago
Christoph Behle
b19b714f37
Add tests for concatenate_string_literals
7 years ago
Christoph Behle
40d121d33e
get_define can concatenate string literals.
...
Added method concatenate_string_literals to CCompiler. Will concatenate
string literals.
Added keyword argument 'concatenate_string_literals' to Compiler.get_define.
If used will apply concatenate_string_literals to its return value.
7 years ago
Christoph Behle
bbb893f39e
Add test case for string literal concatenation.
7 years ago
Jussi Pakkanen
6cd7372e26
Comparing objects of different type prints a warning. Closes #2870 .
7 years ago
Dylan Baker
62fc6e7412
tests: fix "140 get define" on NetBSD
...
NetBSD's zlib is older (1.2.3), and doesn't have ZLIB_VER_MAJOR.
7 years ago
Dylan Baker
087421f922
tests: Add define tests for netbsd
7 years ago
Dylan Baker
b72be62929
tests: Add Dragonfly BSD
...
which uses __DragonFly__
7 years ago
Dylan Baker
a44221db06
tests: Add freebsd to get define test.
7 years ago
Dylan Baker
b56450f9b2
tests: Add haiku to get define test
7 years ago
Nirbheek Chauhan
2b8196a1c8
tests/common/140: Add a test for PR #1738
...
The bug is only encountered with headers in the default compiler
search path, so use zlib.h since that is commonly available.
See: https://github.com/mesonbuild/meson/issues/1726
8 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
Jon Turney
b4b55c3022
Teach test cases/common/140 of the existence of Cygwin
8 years ago
Nirbheek Chauhan
6042e21e25
Use CPPFLAGS for pre-processor compiler checks
...
Also don't add CFLAGS twice for links() checks
Includes a test for this.
8 years ago
Nirbheek Chauhan
de47541e6c
New compiler function: cc.get_define()
...
Runs the pre-processor and fetches the value of the define.
Can find any arbitrary value and returns it as a string.
8 years ago