mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
Meta: Re-bootstrap vcpkg when we update its version
Fetching package versions that were shipped after vcpkg was last bootstrapped requires re-bootstrapping vcpkg.
This commit is contained in:
parent
a3c8e60710
commit
946a09d355
Notes:
sideshowbarker
2024-07-17 02:39:10 +09:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/946a09d355 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/249
2 changed files with 12 additions and 6 deletions
|
@ -127,7 +127,6 @@ build_cmake() {
|
|||
}
|
||||
|
||||
build_vcpkg() {
|
||||
echo "Building vcpkg"
|
||||
( cd "$LADYBIRD_SOURCE_DIR/Toolchain" && ./BuildVcpkg.sh )
|
||||
}
|
||||
|
||||
|
@ -136,10 +135,7 @@ ensure_toolchain() {
|
|||
build_cmake
|
||||
fi
|
||||
|
||||
# FIXME: Add a version check if needed.
|
||||
if [ ! -x "${LADYBIRD_SOURCE_DIR}/Toolchain/Local/vcpkg/bin/vcpkg" ]; then
|
||||
build_vcpkg
|
||||
fi
|
||||
build_vcpkg
|
||||
}
|
||||
|
||||
run_gdb() {
|
||||
|
|
|
@ -26,7 +26,17 @@ PREFIX_DIR="$DIR/Local/vcpkg"
|
|||
|
||||
mkdir -p "$DIR/Tarballs"
|
||||
pushd "$DIR/Tarballs"
|
||||
[ ! -d vcpkg ] && git clone $GIT_REPO
|
||||
if [[ ! -d vcpkg ]]; then
|
||||
git clone "${GIT_REPO}"
|
||||
else
|
||||
bootstrapped_vcpkg_version=$(git -C vcpkg rev-parse HEAD)
|
||||
|
||||
if [[ "${bootstrapped_vcpkg_version}" == "${GIT_REV}" ]]; then
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
echo "Building vcpkg"
|
||||
|
||||
cd vcpkg
|
||||
git fetch origin
|
||||
|
|
Loading…
Reference in a new issue