[vcpkg script] Fix -skipDependencyChecks flag ignored in bootstrap.sh (#46216)

Co-authored-by: Odio Marcelino <odiomarcelino@gmail.com>
This commit is contained in:
S. M. Mohiuddin Khan Shiam 2025-07-01 03:05:52 +06:00 committed by GitHub
parent 0cb95c860e
commit 2f2b60daeb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -22,7 +22,7 @@ do
elif [ "$var" = "-buildTests" ]; then
echo "Warning: -buildTests no longer has any effect; ignored."
elif [ "$var" = "-skipDependencyChecks" ]; then
vcpkgSkipDependencyChecks="OFF"
vcpkgSkipDependencyChecks="ON"
elif [ "$var" = "-musl" ]; then
vcpkgUseMuslC="ON"
elif [ "$var" = "-help" -o "$var" = "--help" ]; then
@ -70,7 +70,8 @@ fi
vcpkgCheckRepoTool()
{
__tool=$1
if [ "$vcpkgSkipDependencyChecks" = "ON" ]; then
# Only perform dependency checks when they are not explicitly skipped.
if [ "$vcpkgSkipDependencyChecks" = "OFF" ]; then
if ! command -v "$__tool" >/dev/null 2>&1 ; then
echo "Could not find $__tool. Please install it (and other dependencies) with:"
echo "On Debian and Ubuntu derivatives:"