diff options
author | Pino Toscano <toscano.pino@tiscali.it> | 2020-04-09 11:59:18 +0200 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2020-04-10 11:29:35 -0700 |
commit | a441836773fd4e2e0438b434145c83d8838c261d (patch) | |
tree | 6fd58fed995c7ddd0bfa75dbb267fa3ab39e1a88 /mesonbuild/mesonlib.py | |
parent | 97a72a1c53e68cf53541285075b4000f7c85ccc6 (diff) | |
download | meson-a441836773fd4e2e0438b434145c83d8838c261d.zip meson-a441836773fd4e2e0438b434145c83d8838c261d.tar.gz meson-a441836773fd4e2e0438b434145c83d8838c261d.tar.bz2 |
Recognize Hurd as platform/OS
Diffstat (limited to 'mesonbuild/mesonlib.py')
-rw-r--r-- | mesonbuild/mesonlib.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/mesonlib.py b/mesonbuild/mesonlib.py index c72197e..6c1e466 100644 --- a/mesonbuild/mesonlib.py +++ b/mesonbuild/mesonlib.py @@ -508,6 +508,10 @@ def is_freebsd() -> bool: return platform.system().lower() == 'freebsd' +def is_hurd() -> bool: + return platform.system().lower() == 'gnu' + + def exe_exists(arglist: T.List[str]) -> bool: try: if subprocess.run(arglist, timeout=10).returncode == 0: |