summaryrefslogtreecommitdiff
path: root/utils/lit
diff options
context:
space:
mode:
Diffstat (limited to 'utils/lit')
-rw-r--r--utils/lit/lit/llvm/config.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/utils/lit/lit/llvm/config.py b/utils/lit/lit/llvm/config.py
index d9e5f88556b..798f08af1be 100644
--- a/utils/lit/lit/llvm/config.py
+++ b/utils/lit/lit/llvm/config.py
@@ -45,14 +45,16 @@ class LLVMConfig(object):
features.add('shell')
# Running on Darwin OS
- if platform.system() in ['Darwin']:
+ if platform.system() == 'Darwin':
# FIXME: lld uses the first, other projects use the second.
# We should standardize on the former.
features.add('system-linker-mach-o')
features.add('system-darwin')
- elif platform.system() in ['Windows']:
+ elif platform.system() == 'Windows':
# For tests that require Windows to run.
features.add('system-windows')
+ elif platform.system() == "Linux":
+ features.add('system-linux')
# Native compilation: host arch == default triple arch
# Both of these values should probably be in every site config (e.g. as