aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost/directory.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2021-05-07 16:48:07 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2021-05-07 17:24:30 +0300
commitce359a1ae006b588b4427ef8784224a36ada4caf (patch)
tree2cafe6790d1a1e766ef4113c20d2a8c03df4312e /project/boost/directory.py
parentv2.3 (diff)
downloadcmake-common-ce359a1ae006b588b4427ef8784224a36ada4caf.tar.gz
cmake-common-ce359a1ae006b588b4427ef8784224a36ada4caf.zip
project.toolset: support versioned MSVC toolsets
You can now use something like msvc-141, vs-2017, etc.
Diffstat (limited to '')
-rw-r--r--project/boost/directory.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/project/boost/directory.py b/project/boost/directory.py
index 4da58a7..be633fe 100644
--- a/project/boost/directory.py
+++ b/project/boost/directory.py
@@ -33,7 +33,7 @@ class BoostDir:
def bootstrap(self, params):
with self._go():
- run([self._bootstrap_path()] + self._bootstrap_args(params.toolset_hint))
+ run([self._bootstrap_path()] + self._bootstrap_args(params.toolset_version))
def _b2(self, params):
for b2_params in params.enum_b2_args():
@@ -51,8 +51,8 @@ class BoostDir:
return f'bootstrap{ext}'
@staticmethod
- def _bootstrap_args(hint):
- toolset = Toolset.detect(hint)
+ def _bootstrap_args(toolset_version):
+ toolset = Toolset.detect(toolset_version)
if on_windows():
return toolset.bootstrap_bat_args()
return toolset.bootstrap_sh_args()