From bd8ec03740408d97263e479c7d37dee6fe339a8f Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Wed, 15 Feb 2017 14:55:44 +0100 Subject: Disable LLVM assertions by default, on supported platforms. But keep them on linux-dev CI. --- python/servo/util.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'python/servo/util.py') diff --git a/python/servo/util.py b/python/servo/util.py index 03f993b3bf0..77fba165446 100644 --- a/python/servo/util.py +++ b/python/servo/util.py @@ -20,7 +20,7 @@ import zipfile import urllib2 -def host_triple(): +def host_platform(): os_type = platform.system().lower() if os_type == "linux": os_type = "unknown-linux-gnu" @@ -42,7 +42,11 @@ def host_triple(): os_type = "unknown-freebsd" else: os_type = "unknown" + return os_type + +def host_triple(): + os_type = host_platform() cpu_type = platform.machine().lower() if os_type.endswith("-msvc"): # vcvars*.bat should set it properly -- cgit v1.2.3