diff options
author | Nirbheek Chauhan <nirbheek@centricular.com> | 2017-07-20 18:00:15 +0530 |
---|---|---|
committer | Jussi Pakkanen <jpakkane@gmail.com> | 2017-07-23 02:12:00 +0300 |
commit | de2d59cc27777562e55091633331aa478a877afd (patch) | |
tree | a4a2a593e86076ddfcc213ee9fcfe14447a4e0b6 /mesonbuild/compilers/compilers.py | |
parent | b3d048e93a55feaedadb1efae72de0b8871eefab (diff) | |
download | meson-de2d59cc27777562e55091633331aa478a877afd.zip meson-de2d59cc27777562e55091633331aa478a877afd.tar.gz meson-de2d59cc27777562e55091633331aa478a877afd.tar.bz2 |
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
Diffstat (limited to 'mesonbuild/compilers/compilers.py')
-rw-r--r-- | mesonbuild/compilers/compilers.py | 4 |
1 files changed, 4 insertions, 0 deletions
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] |