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
Dylan Baker
4e18483ff3
tests: fix option in case 140
...
Which fails after the next patch because it provides an invalid kwarg.
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