From de2d59cc27777562e55091633331aa478a877afd Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 20 Jul 2017 18:00:15 +0530 Subject: find_library: Ignore libs on MSVC properly In addition to filtering libs out while generating the command-line, we must also filter them out in find_library() otherwise these libs will be detected as "found" on Windows with MSVC. Closes https://github.com/mesonbuild/meson/issues/1509 --- mesonbuild/compilers/compilers.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'mesonbuild/compilers/compilers.py') diff --git a/mesonbuild/compilers/compilers.py b/mesonbuild/compilers/compilers.py index 77b3cb9..3c993ac 100644 --- a/mesonbuild/compilers/compilers.py +++ b/mesonbuild/compilers/compilers.py @@ -593,6 +593,10 @@ class CompilerArgs(list): self.__iadd__(args) class Compiler: + # Libraries to ignore in find_library() since they are provided by the + # compiler or the C library. Currently only used for MSVC. + ignore_libs = () + def __init__(self, exelist, version): if isinstance(exelist, str): self.exelist = [exelist] -- cgit v1.1