fork/rules_rust
git clone https://git.julia.blue/fork/rules_rust
d83c8658
main
1@ECHO OFF 2SETLOCAL enabledelayedexpansion 3 4SET command =%* 5 6:: Resolve the `${pwd}` placeholders 7SETcommand =!command :${pwd }=%CD% ! 8 9:: Strip out the leading `--` argument. 10SETcommand =!command :~3 ! 11 12:: Find the rustc.exe argument and sanitize it's path 13for %%A in (% *)do ( 14 SETarg =%%~A 15 if"!arg:~-9!" =="rustc .exe " ( 16SET sanitized =!arg :/=\! 17 18SET command =!sanitized ! !command :%%~A =! 19goto :break 20 ) 21) 22 23:break 24 25%command% 26 27:: Capture the exit code of rustc.exe 28SET exit_code =!errorlevel ! 29 30:: Exit with the same exit code 31EXIT /b %exit_code%