Disable LLVM assertions by default, on supported platforms.

But keep them on linux-dev CI.
This commit is contained in:
Simon Sapin 2017-02-15 14:55:44 +01:00
parent 4f10a0f2e1
commit bd8ec03740
4 changed files with 20 additions and 11 deletions

View file

@ -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