mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Disable LLVM assertions by default, on supported platforms.
But keep them on linux-dev CI.
This commit is contained in:
parent
4f10a0f2e1
commit
bd8ec03740
4 changed files with 20 additions and 11 deletions
|
@ -14,9 +14,9 @@ mac-rel-wpt2:
|
||||||
- ./mach filter-intermittents wpt-errorsummary.log --log-intermittents intermittents.log --log-filteredsummary filtered-wpt-errorsummary.log --use-tracker
|
- ./mach filter-intermittents wpt-errorsummary.log --log-intermittents intermittents.log --log-filteredsummary filtered-wpt-errorsummary.log --use-tracker
|
||||||
|
|
||||||
mac-dev-unit:
|
mac-dev-unit:
|
||||||
- ./mach build --dev
|
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build --dev
|
||||||
- ./mach test-unit
|
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach test-unit
|
||||||
- ./mach build-cef
|
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build-cef
|
||||||
- ./mach build-geckolib
|
- ./mach build-geckolib
|
||||||
- bash ./etc/ci/lockfile_changed.sh
|
- bash ./etc/ci/lockfile_changed.sh
|
||||||
- bash ./etc/ci/manifest_changed.sh
|
- bash ./etc/ci/manifest_changed.sh
|
||||||
|
@ -46,10 +46,10 @@ mac-rel-intermittent:
|
||||||
linux-dev:
|
linux-dev:
|
||||||
- ./mach test-tidy --no-progress --all
|
- ./mach test-tidy --no-progress --all
|
||||||
- ./mach test-tidy --no-progress --self-test
|
- ./mach test-tidy --no-progress --self-test
|
||||||
- ./mach build --dev
|
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build --dev
|
||||||
- ./mach test-compiletest
|
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach test-compiletest
|
||||||
- ./mach test-unit
|
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach test-unit
|
||||||
- ./mach build-cef
|
- env SERVO_RUSTC_LLVM_ASSERTIONS=1 ./mach build-cef
|
||||||
- ./mach build-geckolib
|
- ./mach build-geckolib
|
||||||
- ./mach test-stylo
|
- ./mach test-stylo
|
||||||
- bash ./etc/ci/lockfile_changed.sh
|
- bash ./etc/ci/lockfile_changed.sh
|
||||||
|
|
|
@ -23,7 +23,7 @@ from mach.registrar import Registrar
|
||||||
import toml
|
import toml
|
||||||
|
|
||||||
from servo.packages import WINDOWS_MSVC as msvc_deps
|
from servo.packages import WINDOWS_MSVC as msvc_deps
|
||||||
from servo.util import host_triple
|
from servo.util import host_triple, host_platform
|
||||||
|
|
||||||
BIN_SUFFIX = ".exe" if sys.platform == "win32" else ""
|
BIN_SUFFIX = ".exe" if sys.platform == "win32" else ""
|
||||||
|
|
||||||
|
@ -263,10 +263,15 @@ class CommandBase(object):
|
||||||
context.sharedir, "cargo", self.cargo_build_id())
|
context.sharedir, "cargo", self.cargo_build_id())
|
||||||
self.config["tools"].setdefault("rustc-with-gold", get_env_bool("SERVO_RUSTC_WITH_GOLD", True))
|
self.config["tools"].setdefault("rustc-with-gold", get_env_bool("SERVO_RUSTC_WITH_GOLD", True))
|
||||||
|
|
||||||
|
# https://github.com/rust-lang/rust/pull/39754
|
||||||
|
platforms_with_rustc_alt_builds = ["unknown-linux-gnu", "apple-darwin", "pc-windows-msvc"]
|
||||||
|
llvm_assertions_default = ("SERVO_RUSTC_LLVM_ASSERTIONS" in os.environ
|
||||||
|
or host_platform() not in platforms_with_rustc_alt_builds)
|
||||||
|
|
||||||
self.config.setdefault("build", {})
|
self.config.setdefault("build", {})
|
||||||
self.config["build"].setdefault("android", False)
|
self.config["build"].setdefault("android", False)
|
||||||
self.config["build"].setdefault("mode", "")
|
self.config["build"].setdefault("mode", "")
|
||||||
self.config["build"].setdefault("llvm-assertions", True)
|
self.config["build"].setdefault("llvm-assertions", llvm_assertions_default)
|
||||||
self.config["build"].setdefault("debug-mozjs", False)
|
self.config["build"].setdefault("debug-mozjs", False)
|
||||||
self.config["build"].setdefault("ccache", "")
|
self.config["build"].setdefault("ccache", "")
|
||||||
self.config["build"].setdefault("rustflags", "")
|
self.config["build"].setdefault("rustflags", "")
|
||||||
|
|
|
@ -20,7 +20,7 @@ import zipfile
|
||||||
import urllib2
|
import urllib2
|
||||||
|
|
||||||
|
|
||||||
def host_triple():
|
def host_platform():
|
||||||
os_type = platform.system().lower()
|
os_type = platform.system().lower()
|
||||||
if os_type == "linux":
|
if os_type == "linux":
|
||||||
os_type = "unknown-linux-gnu"
|
os_type = "unknown-linux-gnu"
|
||||||
|
@ -42,7 +42,11 @@ def host_triple():
|
||||||
os_type = "unknown-freebsd"
|
os_type = "unknown-freebsd"
|
||||||
else:
|
else:
|
||||||
os_type = "unknown"
|
os_type = "unknown"
|
||||||
|
return os_type
|
||||||
|
|
||||||
|
|
||||||
|
def host_triple():
|
||||||
|
os_type = host_platform()
|
||||||
cpu_type = platform.machine().lower()
|
cpu_type = platform.machine().lower()
|
||||||
if os_type.endswith("-msvc"):
|
if os_type.endswith("-msvc"):
|
||||||
# vcvars*.bat should set it properly
|
# vcvars*.bat should set it properly
|
||||||
|
|
|
@ -40,7 +40,7 @@ rustc-with-gold = true
|
||||||
#mode = "dev"
|
#mode = "dev"
|
||||||
|
|
||||||
# Whether to enable LLVM assertions in rustc.
|
# Whether to enable LLVM assertions in rustc.
|
||||||
#llvm-assertions = true
|
#llvm-assertions = false
|
||||||
|
|
||||||
# Set "android = true" or use `mach build --android` to build the Android app.
|
# Set "android = true" or use `mach build --android` to build the Android app.
|
||||||
android = false
|
android = false
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue