Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Only build ports/servo by default (except Android), add `./mach build --libsimpleservo` #21809

Merged
merged 4 commits into from Sep 27, 2018
Merged
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

Prev

Only add --manifest-path if not already present

  • Loading branch information
SimonSapin committed Sep 26, 2018
commit deeb79669f2bd3829cca745f2d514205a4d61307
@@ -256,7 +256,7 @@ def build(self, target=None, release=False, dev=False, jobs=None,
self.ensure_bootstrapped(target=target)
self.ensure_clobbered()

opts += ["--manifest-path", self.manifest_path(android, libsimpleservo)]
self.add_manifest_path(opts, android, libsimpleservo)

if debug_mozjs:
features += ["debugmozjs"]
@@ -670,11 +670,14 @@ def package_dir(package):
def ports_servo_crate(self):
return path.join(self.context.topdir, "ports", "servo")

def manifest_path(self, android=False, libsimpleservo=False):
if libsimpleservo or android:
return self.ports_libsimpleservo_manifest()
else:
return self.ports_servo_manifest()
def add_manifest_path(self, args, android=False, libsimpleservo=False):
if "--manifest-path" not in args:
if libsimpleservo or android:
manifest = self.ports_libsimpleservo_manifest()
else:
manifest = self.ports_servo_manifest()
args.append("--manifest-path")
args.append(manifest)

def ports_servo_manifest(self):
return path.join(self.context.topdir, "ports", "servo", "Cargo.toml")
@@ -40,8 +40,7 @@ def run_cargo(self, params, check=False):
if check:
params = ['check'] + params

if "--manifest-path" not in params:
params += ["--manifest-path", self.ports_servo_manifest()]
self.add_manifest_path(params)

build_start = time()
status = self.call_rustup_run(["cargo"] + params, env=env)
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.