diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-30 00:13:20 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2020-03-30 00:53:14 +0300 |
commit | 8a8941b853ba5ccecc65cf55222c6c129e92d675 (patch) | |
tree | d3a251cdfe4be68914f43103876d908930314bb4 /project/os.py | |
parent | project.boost: first-class MinGW-w64 support (diff) | |
download | cmake-common-8a8941b853ba5ccecc65cf55222c6c129e92d675.tar.gz cmake-common-8a8941b853ba5ccecc65cf55222c6c129e92d675.zip |
project: minor-ish refactoring
Diffstat (limited to '')
-rw-r--r-- | project/os.py | 8 |
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 |