aboutsummaryrefslogtreecommitdiffstats
path: root/python/servo/command_base.py
diff options
context:
space:
mode:
authorMs2ger <ms2ger@gmail.com>2015-03-11 11:08:57 +0100
committerJosh Matthews <josh@joshmatthews.net>2015-03-18 13:18:31 -0400
commit5f15eb5fbfb7a8649132cc8b3a07314389836714 (patch)
treecc36210329cb1a31709a03685c05c4aaa99407e3 /python/servo/command_base.py
parent65d4b12bf20783ea784f1c61f4b33ec0fc975f4f (diff)
downloadservo-5f15eb5fbfb7a8649132cc8b3a07314389836714.tar.gz
servo-5f15eb5fbfb7a8649132cc8b3a07314389836714.zip
Upgrade rustc to d3c49d2140fc65e8bb7d7cf25bfe74dda6ce5ecf/rustc-1.0.0-dev.
Diffstat (limited to 'python/servo/command_base.py')
-rw-r--r--python/servo/command_base.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/python/servo/command_base.py b/python/servo/command_base.py
index 5075cad6487..25ed18bb29a 100644
--- a/python/servo/command_base.py
+++ b/python/servo/command_base.py
@@ -128,12 +128,12 @@ class CommandBase(object):
if not self.config["tools"]["system-rust"] \
or self.config["tools"]["rust-root"]:
env["RUST_ROOT"] = self.config["tools"]["rust-root"]
- extra_path += [path.join(self.config["tools"]["rust-root"], "bin")]
- extra_lib += [path.join(self.config["tools"]["rust-root"], "lib")]
+ extra_path += [path.join(self.config["tools"]["rust-root"], "rustc", "bin")]
+ extra_lib += [path.join(self.config["tools"]["rust-root"], "rustc", "lib")]
if not self.config["tools"]["system-cargo"] \
or self.config["tools"]["cargo-root"]:
extra_path += [
- path.join(self.config["tools"]["cargo-root"], "bin")]
+ path.join(self.config["tools"]["cargo-root"], "cargo", "bin")]
if extra_path:
env["PATH"] = "%s%s%s" % (
@@ -192,7 +192,9 @@ class CommandBase(object):
"--sysroot=%(gonkdir)s/out/target/product/%(gonkproduct)s/obj/") % {"gonkdir": env["GONKDIR"], "gonkproduct": env["GONK_PRODUCT"] }
# Not strictly necessary for a vanilla build, but might be when tweaking the openssl build
- env["OPENSSL_PATH"] = "%(gonkdir)s/out/target/product/%(gonkproduct)s/obj/lib" % {"gonkdir": env["GONKDIR"], "gonkproduct": env["GONK_PRODUCT"] }
+ openssl_dir = "%(gonkdir)s/out/target/product/%(gonkproduct)s/obj/lib" % {"gonkdir": env["GONKDIR"], "gonkproduct": env["GONK_PRODUCT"] }
+ env["OPENSSL_LIB_DIR"] = openssl_dir
+ env['OPENSSL_INCLUDE_DIR'] = path.join(openssl_dir, "include")
# FIXME: These are set because they are the variable names that
# android-rs-glue expects. However, other submodules have makefiles that
@@ -233,11 +235,11 @@ class CommandBase(object):
if not self.config["tools"]["system-rust"] and \
not path.exists(path.join(
- self.config["tools"]["rust-root"], "bin", "rustc")):
+ self.config["tools"]["rust-root"], "rustc", "bin", "rustc")):
Registrar.dispatch("bootstrap-rust", context=self.context)
if not self.config["tools"]["system-cargo"] and \
not path.exists(path.join(
- self.config["tools"]["cargo-root"], "bin", "cargo")):
+ self.config["tools"]["cargo-root"], "cargo", "bin", "cargo")):
Registrar.dispatch("bootstrap-cargo", context=self.context)
self.context.bootstrapped = True