mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
"./mach env" cause unclear message
Use the "get" instead to avoid the error.
This commit is contained in:
parent
e2fca1b228
commit
2ad37bda2c
1 changed files with 4 additions and 4 deletions
|
@ -38,12 +38,12 @@ class MachCommands(CommandBase):
|
||||||
category='bootstrap')
|
category='bootstrap')
|
||||||
def env(self):
|
def env(self):
|
||||||
env = self.build_env()
|
env = self.build_env()
|
||||||
print("export RUSTFLAGS=%s" % env["RUSTFLAGS"])
|
print("export RUSTFLAGS=%s" % env.get("RUSTFLAGS", ""))
|
||||||
print("export PATH=%s" % env["PATH"])
|
print("export PATH=%s" % env.get("PATH", ""))
|
||||||
if sys.platform == "darwin":
|
if sys.platform == "darwin":
|
||||||
print("export DYLD_LIBRARY_PATH=%s" % env["DYLD_LIBRARY_PATH"])
|
print("export DYLD_LIBRARY_PATH=%s" % env.get("DYLD_LIBRARY_PATH", ""))
|
||||||
else:
|
else:
|
||||||
print("export LD_LIBRARY_PATH=%s" % env["LD_LIBRARY_PATH"])
|
print("export LD_LIBRARY_PATH=%s" % env.get("LD_LIBRARY_PATH", ""))
|
||||||
|
|
||||||
@Command('bootstrap',
|
@Command('bootstrap',
|
||||||
description='Install required packages for building.',
|
description='Install required packages for building.',
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue