meson/mesonbuild/mesonlib
Paolo Bonzini 8596b3bcd1 interpreter: detect and pass compiler to be used for linker tests
Allow using the links method to test that the C++ driver (e.g. g++) can be used to
link C objects.  One usecase is that the C compiler's libsanitizer might not be
compatible with the one included by the C++ driver.

This is theoretically backwards-incompatible, but it should be treated as a
bugfix in my opinion. There is no way in Meson to compile a .c file with the
C++ driver as part of a build target, therefore there would be no reason to
do something like meson.get_compiler(meson.get_compiler('cpp').links(files('main.c')).

Fixes: #7703
2021-09-07 14:18:33 +02:00
..
__init__.py split mesonlib into a package 2021-01-23 12:48:29 +01:00
platform.py split mesonlib into a package 2021-01-23 12:48:29 +01:00
posix.py fix: Always explicitly set encoding for text files (fixes #8263) 2021-06-29 11:28:08 +02:00
universal.py interpreter: detect and pass compiler to be used for linker tests 2021-09-07 14:18:33 +02:00
win32.py fix: Always explicitly set encoding for text files (fixes #8263) 2021-06-29 11:28:08 +02:00