From d1a35dd2ba5b2a4af6b408ca6c62a6f7a4bada9d Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 30 Jun 2022 18:12:07 -0700 Subject: [PATCH] Fix cargo builds on Windows --- build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.py b/build.py index fad1e4225..19523b002 100755 --- a/build.py +++ b/build.py @@ -227,7 +227,7 @@ def run_cargo_build(args): targets = set(args.target) & set(rust_targets) 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 native_out = op.join('..', '..', 'native', 'out')