aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/boost
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2020-03-29 14:24:17 +0000
committerEgor Tensin <Egor.Tensin@gmail.com>2020-03-29 14:24:17 +0000
commit5807ec7bc875d678f2e9502259d62d83b858a854 (patch)
tree0e6e1f92777230d94c627ef9208de24d84b4558a /project/boost
parentclang-format.py: fix timestamps in logs (diff)
downloadcmake-common-5807ec7bc875d678f2e9502259d62d83b858a854.tar.gz
cmake-common-5807ec7bc875d678f2e9502259d62d83b858a854.zip
project: add os.py
Diffstat (limited to '')
-rw-r--r--project/boost/build.py3
-rw-r--r--project/boost/directory.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/project/boost/build.py b/project/boost/build.py
index 82180a5..a33a538 100644
--- a/project/boost/build.py
+++ b/project/boost/build.py
@@ -25,6 +25,7 @@ from project.boost.directory import BoostDir
from project.configuration import Configuration
from project.linkage import Linkage
from project.platform import Platform
+from project.os import on_linux_like
import project.utils
@@ -81,7 +82,7 @@ class BuildParameters:
if link is Linkage.SHARED:
logging.warning("Cannot link the runtime statically to a dynamic library, going to link dynamically")
runtime_link = Linkage.SHARED
- elif project.utils.on_linux():
+ elif on_linux_like():
logging.warning("Cannot link to the GNU C Library (which is assumed) statically, going to link dynamically")
runtime_link = Linkage.SHARED
yield link, runtime_link
diff --git a/project/boost/directory.py b/project/boost/directory.py
index e50041f..17448b6 100644
--- a/project/boost/directory.py
+++ b/project/boost/directory.py
@@ -6,7 +6,8 @@
import logging
import os.path
-from project.utils import cd, run, on_windows
+from project.utils import cd, run
+from project.os import on_windows
class BoostDir: