aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/project/os.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/os.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 'project/os.py')
-rw-r--r--project/os.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/project/os.py b/project/os.py
index 2f5f088..53b64e1 100644
--- a/project/os.py
+++ b/project/os.py
@@ -36,6 +36,14 @@ def on_windows_like():
return os is OS.WINDOWS or os is OS.CYGWIN
+def on_linux():
+ return OS.current() is OS.LINUX
+
+
def on_linux_like():
os = OS.current()
return os is OS.LINUX or os is OS.CYGWIN
+
+
+def on_cygwin():
+ return OS.current() is OS.CYGWIN