[rust] Update build scripts after https://crrev.com/c/4603729
Bug: 1454254 Change-Id: I2966488f5f21cd26889aff495ccb75ddf5fb5aea Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4609520 Auto-Submit: Arthur Eubanks <aeubanks@google.com> Reviewed-by: Alan Zhao <ayzhao@google.com> Commit-Queue: Alan Zhao <ayzhao@google.com> Cr-Commit-Position: refs/heads/main@{#1156541}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
f4ebdd96e9
commit
c8aabd2abb
tools/rust
@ -228,7 +228,7 @@ def main():
|
||||
'--bin',
|
||||
'bindgen',
|
||||
]
|
||||
RunCommand([cargo_bin] + cargo_args, msvc_arch='x64', env=env)
|
||||
RunCommand([cargo_bin] + cargo_args, setenv=True, env=env)
|
||||
|
||||
install_dir = os.path.join(RUST_TOOLCHAIN_OUT_DIR)
|
||||
print(f'Installing bindgen to {install_dir} ...')
|
||||
|
@ -521,7 +521,7 @@ class XPy:
|
||||
cmd = [sys.executable, 'x.py', sub]
|
||||
if self._verbose and self._verbose > 0:
|
||||
cmd.append('-' + self._verbose * 'v')
|
||||
RunCommand(cmd + args, msvc_arch='x64', env=self._env)
|
||||
RunCommand(cmd + args, setenv=True, env=self._env)
|
||||
os.chdir(CHROMIUM_DIR)
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user