From ff07314a865d960aac2c377a94de766b68888ee5 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Wed, 30 May 2018 14:05:55 +0530 Subject: New compiler method: check_header This checks not only for existence, but also for usability of the header, which means it does a full compilation and not just pre-processing or __has_include. Fixes https://github.com/mesonbuild/meson/issues/2246 --- mesonbuild/compilers/compilers.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'mesonbuild/compilers/compilers.py') diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 56a0ab2..c5f7df3 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -710,6 +710,9 @@ class Compiler: def get_option_link_args(self, options): return [] + def check_header(self, *args, **kwargs): + raise EnvironmentException('Language %s does not support header checks.' % self.get_display_language()) + def has_header(self, *args, **kwargs): raise EnvironmentException('Language %s does not support header checks.' % self.get_display_language()) -- cgit v1.1