aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost/build.py
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-30 00:13:20 +0300
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-30 00:53:14 +0300
commit8a8941b853ba5ccecc65cf55222c6c129e92d675 (patch)
treed3a251cdfe4be68914f43103876d908930314bb4 /project/boost/build.py
parentproject.boost: first-class MinGW-w64 support (diff)
downloadcmake-common-8a8941b853ba5ccecc65cf55222c6c129e92d675.tar.gz
cmake-common-8a8941b853ba5ccecc65cf55222c6c129e92d675.zip
project: minor-ish refactoring
Diffstat (limited to '')
-rw-r--r--project/boost/build.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/project/boost/build.py b/project/boost/build.py
index c9081eb..6d2b897 100644
--- a/project/boost/build.py
+++ b/project/boost/build.py
@@ -22,7 +22,7 @@ import sys
import tempfile
from project.boost.directory import BoostDir
-from project.boost.toolchain import detect_toolchain
+from project.boost.toolchain import Toolchain
from project.configuration import Configuration
from project.linkage import Linkage
from project.platform import Platform
@@ -71,7 +71,7 @@ class BuildParameters:
def enum_b2_args(self):
with self._create_build_dir() as build_dir:
for platform in self.platforms:
- with detect_toolchain(platform, mingw=self.mingw) as toolchain:
+ with Toolchain.detect(platform, mingw=self.mingw) as toolchain:
for configuration in self.configurations:
for link, runtime_link in self._linkage_options():
yield self._build_params(build_dir, toolchain,