Update atoms when build geckolib with gecko

This commit is contained in:
Xidorn Quan 2016-12-16 11:56:05 +11:00
parent 6c952e12df
commit 3633384f10
2 changed files with 23 additions and 10 deletions

View file

@ -416,6 +416,14 @@ class MachCommands(CommandBase):
if release:
opts += ["--release"]
if with_gecko is not None:
print("Generating atoms data...")
run_file = path.join(self.context.topdir, "components",
"style", "binding_tools", "regen_atoms.py")
run_globals = {"__file__": run_file}
execfile(run_file, run_globals)
run_globals["generate_atoms"](env["MOZ_DIST"])
build_start = time()
with cd(path.join("ports", "geckolib")):
ret = call(["cargo", "build"] + opts, env=env, verbose=verbose)