From 5807ec7bc875d678f2e9502259d62d83b858a854 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sun, 29 Mar 2020 14:24:17 +0000 Subject: project: add os.py --- project/boost/build.py | 3 ++- project/boost/directory.py | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'project/boost') 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: -- cgit v1.2.3