mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +01:00
Define NATIVE_WIN32_PYTHON environment variable
This commit is contained in:
parent
870841099a
commit
6832e9266b
1 changed files with 4 additions and 0 deletions
|
@ -399,6 +399,10 @@ class CommandBase(object):
|
||||||
# Link moztools
|
# Link moztools
|
||||||
env["MOZTOOLS_PATH"] = path.join(msvc_deps_dir, "moztools", "bin")
|
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"] \
|
if not self.config["tools"]["system-rust"] \
|
||||||
or self.config["tools"]["rust-root"]:
|
or self.config["tools"]["rust-root"]:
|
||||||
env["RUST_ROOT"] = self.config["tools"]["rust-root"]
|
env["RUST_ROOT"] = self.config["tools"]["rust-root"]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue