mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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')
|
||||
def env(self):
|
||||
env = self.build_env()
|
||||
print("export RUSTFLAGS=%s" % env["RUSTFLAGS"])
|
||||
print("export PATH=%s" % env["PATH"])
|
||||
print("export RUSTFLAGS=%s" % env.get("RUSTFLAGS", ""))
|
||||
print("export PATH=%s" % env.get("PATH", ""))
|
||||
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:
|
||||
print("export LD_LIBRARY_PATH=%s" % env["LD_LIBRARY_PATH"])
|
||||
print("export LD_LIBRARY_PATH=%s" % env.get("LD_LIBRARY_PATH", ""))
|
||||
|
||||
@Command('bootstrap',
|
||||
description='Install required packages for building.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue