-
Notifications
You must be signed in to change notification settings - Fork 287
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix bootstrap wrapper scripts to tolerate deployment within readonly …
…VCPKG_ROOT. (#939)
- Loading branch information
1 parent
b2d59cb
commit 538539c
Showing
7 changed files
with
93 additions
and
259 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
@echo off | ||
:: Generate 30 bits of randomness, to avoid clashing with concurrent executions. | ||
SET /A Z_VCPKG_POSTSCRIPT=%RANDOM% * 32768 + %RANDOM% | ||
:: Set a temporary postscript path | ||
SET Z_VCPKG_POSTSCRIPT=%TEMP%\VCPKG_tmp_%Z_VCPKG_POSTSCRIPT%.cmd | ||
:: Actually run vcpkg and save its exit code | ||
"%~dp0\vcpkg.exe" %* | ||
SET Z_VCPKG_ERRORLEVEL=%ERRORLEVEL% | ||
:: If vcpkg wanted to make any environment changes, make them | ||
IF EXIST "%Z_VCPKG_POSTSCRIPT%" ( | ||
CALL "%Z_VCPKG_POSTSCRIPT%" | ||
DEL "%Z_VCPKG_POSTSCRIPT%" | ||
) | ||
|
||
:: Cleanup | ||
SET Z_VCPKG_POSTSCRIPT= | ||
EXIT /B %Z_VCPKG_ERRORLEVEL% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.