Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 85f63f3

Browse filesBrowse files
liudonghua123targos
authored andcommitted
build: check before removing %config% link
PR-URL: #51437 Reviewed-By: Vinícius Lourenço Claro Cardoso <contact@viniciusl.com.br> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent cc37959 commit 85f63f3
Copy full SHA for 85f63f3

File tree

Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-1
lines changed
Open diff view settings
Collapse file

‎vcbuild.bat‎

Copy file name to clipboardExpand all lines: vcbuild.bat
+2-1Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,8 @@ if errorlevel 1 (
337337
if "%target%" == "Clean" goto exit
338338

339339
:after-build
340-
rd %config%
340+
:: Check existence of %config% before removing it.
341+
if exist %config% rd %config%
341342
if errorlevel 1 echo "Old build output exists at 'out\%config%'. Please remove." & exit /B
342343
:: Use /J because /D (symlink) requires special permissions.
343344
if EXIST out\%config% mklink /J %config% out\%config%

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.