aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-04-19 14:12:53 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2016-04-19 14:13:45 +0530
commitaa7202d42fdbfba3e7ff358be8d41133e5ec431a (patch)
treeddd722fcc89c1a451302da4fcfcf9a1bc564935d
parentd87f2f5b427c1da74450bc6eb553f3dba6b3cbe0 (diff)
downloadmeson-aa7202d42fdbfba3e7ff358be8d41133e5ec431a.zip
meson-aa7202d42fdbfba3e7ff358be8d41133e5ec431a.tar.gz
meson-aa7202d42fdbfba3e7ff358be8d41133e5ec431a.tar.bz2
compilers: Remove outdated MSVC implementation of cc.find_library
With the change to cc.links to translate unix link flags, this is no longer needed and is wrong because it hasn't kept-up with the improved default cc.find_library implementation.
-rw-r--r--mesonbuild/compilers.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 87bd0d5..a320e7d 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -1393,19 +1393,6 @@ class VisualStudioCCompiler(CCompiler):
def build_rpath_args(self, build_dir, rpath_paths, install_rpath):
return []
- def find_library(self, libname, extra_dirs):
- code = '''int main(int argc, char **argv) {
- return 0;
-}
- '''
- args = []
- for i in extra_dirs:
- args += self.get_linker_search_args(i)
- args.append(libname + '.lib')
- if self.links(code, extra_args=args):
- return args
- return None
-
# FIXME, no idea what these should be.
def thread_flags(self):
return []