aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/backend/vs2010backend.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2017-09-30 03:58:54 +0530
committerNirbheek Chauhan <nirbheek@centricular.com>2017-09-30 03:58:54 +0530
commit560f4b6fc74aae8ddf281e6cb1c6ae52755e143b (patch)
treed4c2392f5bc93f5ea04c966c169595d8e543965a /mesonbuild/backend/vs2010backend.py
parentb866cf0804954bee535dfbceb77b0a67fcbb7615 (diff)
downloadmeson-560f4b6fc74aae8ddf281e6cb1c6ae52755e143b.zip
meson-560f4b6fc74aae8ddf281e6cb1c6ae52755e143b.tar.gz
meson-560f4b6fc74aae8ddf281e6cb1c6ae52755e143b.tar.bz2
vs: Fix detection of options vs libraries in link args
Diffstat (limited to 'mesonbuild/backend/vs2010backend.py')
-rw-r--r--mesonbuild/backend/vs2010backend.py2
1 files changed, 2 insertions, 0 deletions
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'):