Fix cargo builds on Windows

This commit is contained in:
topjohnwu 2022-06-30 18:12:07 -07:00
parent 26116ac414
commit d1a35dd2ba

View File

@ -227,7 +227,7 @@ def run_cargo_build(args):
targets = set(args.target) & set(rust_targets) targets = set(args.target) & set(rust_targets)
env = os.environ.copy() env = os.environ.copy()
env['PATH'] = f'{rust_bin}:{env["PATH"]}' env['CARGO_BUILD_RUSTC'] = op.join(rust_bin, 'rustc' + EXE_EXT)
# Install cxxbridge and generate C++ bindings # Install cxxbridge and generate C++ bindings
native_out = op.join('..', '..', 'native', 'out') native_out = op.join('..', '..', 'native', 'out')