Define NATIVE_WIN32_PYTHON environment variable

This commit is contained in:
UK992 2016-10-08 17:05:37 +02:00
parent 870841099a
commit 6832e9266b

View file

@ -399,6 +399,10 @@ class CommandBase(object):
# Link moztools
env["MOZTOOLS_PATH"] = path.join(msvc_deps_dir, "moztools", "bin")
if is_windows():
if not os.environ.get("NATIVE_WIN32_PYTHON"):
env["NATIVE_WIN32_PYTHON"] = sys.executable
if not self.config["tools"]["system-rust"] \
or self.config["tools"]["rust-root"]:
env["RUST_ROOT"] = self.config["tools"]["rust-root"]