From 560f4b6fc74aae8ddf281e6cb1c6ae52755e143b Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Sat, 30 Sep 2017 03:58:54 +0530 Subject: vs: Fix detection of options vs libraries in link args --- mesonbuild/backend/vs2010backend.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mesonbuild/backend/vs2010backend.py b/mesonbuild/backend/vs2010backend.py index 9ccc12f..352c707 100644 --- a/mesonbuild/backend/vs2010backend.py +++ b/mesonbuild/backend/vs2010backend.py @@ -532,6 +532,8 @@ class Vs2010Backend(backends.Backend): if lpath in lpaths: lpaths.remove(lpath) lpaths.append(lpath) + elif arg.startswith(('/', '-')): + other.append(arg) # It's ok if we miss libraries with non-standard extensions here. # They will go into the general link arguments. elif arg.endswith('.lib') or arg.endswith('.a'): -- cgit v1.1