diff --git a/build_all.bat b/build_all.bat index 0a13604b..87792541 100644 --- a/build_all.bat +++ b/build_all.bat @@ -9,6 +9,7 @@ IF NOT "%~1" == "" ( mkdir bin\ cd src\Tools\ +call build_all.bat update call build_all.bat %build_type% cd ..\Library\ diff --git a/src/Tools/Tools.code-workspace b/src/Tools/Tools.code-workspace index 699a419c..dd1e23fb 100644 --- a/src/Tools/Tools.code-workspace +++ b/src/Tools/Tools.code-workspace @@ -65,7 +65,7 @@ { "id": "cargo cmd", "type":"pickString", - "options": ["build", "check", "clean", "run"], + "options": ["build", "check", "update", "clean", "run"], "default": "build", "description": "cargo command to run" }, diff --git a/src/Tools/run_cargo.bat b/src/Tools/run_cargo.bat index 28647fd5..edc29ee8 100644 --- a/src/Tools/run_cargo.bat +++ b/src/Tools/run_cargo.bat @@ -53,4 +53,11 @@ IF %2 == clean ( exit /B %ERRORLEVEL% ) +IF %2 == update ( + echo cargo update %1 + %wsl%cargo update + + exit /B %ERRORLEVEL% +) + echo "Unkown cargo command "%2" for project "%1" \ No newline at end of file