mirror of
https://github.com/servo/servo.git
synced 2025-07-27 01:00:41 +01:00
Download extra std lib when cross-compiling #9557
Split ensure_bootstrap into two phases including a phase checking the compiler, and a phase checking for target libraries.
This commit is contained in:
parent
0b27807ad4
commit
0df4118db9
3 changed files with 61 additions and 39 deletions
|
@ -193,18 +193,21 @@ class MachCommands(CommandBase):
|
|||
print("Please specify either --dev or --release.")
|
||||
sys.exit(1)
|
||||
|
||||
self.ensure_bootstrapped()
|
||||
|
||||
targets = []
|
||||
if release:
|
||||
opts += ["--release"]
|
||||
if target:
|
||||
opts += ["--target", target]
|
||||
targets.append(target)
|
||||
if jobs is not None:
|
||||
opts += ["-j", jobs]
|
||||
if verbose:
|
||||
opts += ["-v"]
|
||||
if android:
|
||||
opts += ["--target", self.config["android"]["target"]]
|
||||
targets.append("arm-linux-androideabi")
|
||||
|
||||
self.ensure_bootstrapped(targets=targets)
|
||||
|
||||
if debug_mozjs or self.config["build"]["debug-mozjs"]:
|
||||
features += ["script/debugmozjs"]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue