From d73748815014b8b4bbbd7fe7fb8b50b8a75aecfc Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Tue, 19 Jun 2018 09:31:32 +0530 Subject: dependencies: Don't assume self.compiler is a C compiler All dependencies were using find_library, has_header, get_define, etc on self.compiler assuming that it's a compiler that outputs and consumes C-like libraries. This is not true for D (and in the future, for Rust) since although they can consume C libraries, they do not use the C ecosystem. For such purposes, we now have self.clib_compiler. Nothing uses self.compiler anymore as a result, and it has been removed. --- mesonbuild/compilers/__init__.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'mesonbuild/compilers/__init__.py') diff --git a/mesonbuild/compilers/__init__.py b/mesonbuild/compilers/__init__.py index 122f96911..8c5a7f73e 100644 --- a/mesonbuild/compilers/__init__.py +++ b/mesonbuild/compilers/__init__.py @@ -27,6 +27,7 @@ __all__ = [ 'all_languages', 'base_options', + 'clib_langs', 'clike_langs', 'c_suffixes', 'cpp_suffixes', @@ -103,6 +104,7 @@ from .compilers import ( ICC_STANDARD, all_languages, base_options, + clib_langs, clike_langs, c_suffixes, cpp_suffixes, -- cgit v1.2.3