From 4f443def700ac9e8db59343f59abb4aa60641f52 Mon Sep 17 00:00:00 2001 From: Andres Suarez Date: Tue, 14 Jul 2020 04:43:31 -0700 Subject: [PATCH] Use the Rust toolchain via the DotSlash Windows shim Reviewed By: mzlee Differential Revision: D22495160 fbshipit-source-id: 3d6240906dd086ccac6668d907074ec7ca86ebce --- build/fbcode_builder/getdeps/buildopts.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/build/fbcode_builder/getdeps/buildopts.py b/build/fbcode_builder/getdeps/buildopts.py index 9bc7e0cdb..ec7f7b0be 100644 --- a/build/fbcode_builder/getdeps/buildopts.py +++ b/build/fbcode_builder/getdeps/buildopts.py @@ -250,9 +250,9 @@ class BuildOptions(object): # If rustc is present in the `bin` directory, set RUSTC to prevent # cargo uses the rustc installed in the system. if self.is_windows(): - cargo_path = os.path.join(bindir, "cargo.bat") - rustc_path = os.path.join(bindir, "rustc.bat") - rustdoc_path = os.path.join(bindir, "rustdoc.bat") + cargo_path = os.path.join(bindir, "cargo.exe") + rustc_path = os.path.join(bindir, "rustc.exe") + rustdoc_path = os.path.join(bindir, "rustdoc.exe") else: cargo_path = os.path.join(bindir, "cargo") rustc_path = os.path.join(bindir, "rustc")