aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md6
-rw-r--r--mesonbuild/compilers.py8
2 files changed, 11 insertions, 3 deletions
diff --git a/README.md b/README.md
index cd20b77..bd166eb 100644
--- a/README.md
+++ b/README.md
@@ -18,8 +18,10 @@ options here>`.
Meson is also available from
[PyPi](https://pypi.python.org/pypi/meson), so it can be installed
-with `pip install meson` (this does not require a source checkout, pip
-will download the package automatically).
+with `pip3 install meson` (this does not require a source checkout,
+pip will download the package automatically). The exact command to
+type to install with pip can very between systems, be sure to use the
+Python 3 version of pip.
####Running
diff --git a/mesonbuild/compilers.py b/mesonbuild/compilers.py
index 5461d07..cc554c4 100644
--- a/mesonbuild/compilers.py
+++ b/mesonbuild/compilers.py
@@ -1220,7 +1220,13 @@ class VisualStudioCCompiler(CCompiler):
i = '/LIBPATH:' + i[2:]
# Translate GNU-style -lfoo library name to the import library
if i.startswith('-l'):
- i = i[2:] + '.lib'
+ name = i[2:]
+ if name in ('m', 'c'):
+ # With MSVC, these are provided by the C runtime which is
+ # linked in by default
+ continue
+ else:
+ i = name + '.lib'
result.append(i)
return result