From dda1573746f0d7858c70fb0b6f2b7a2f1e8aa2d4 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Wed, 8 Jan 2025 17:14:37 -0700 Subject: [PATCH] Devcontainer: Set VCPKG_FORCE_SYSTEM_BINARIES when building cache vcpkg requires this flag to be set when building on non-x86 Linux, as they don't ship enough cached tools for those platforms. Put another way, we must allow system-installed versions of tools such as CMake, Ninja, and pkg-config into the vcpkg build process on these platforms. --- .devcontainer/features/vcpkg-cache/install.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.devcontainer/features/vcpkg-cache/install.sh b/.devcontainer/features/vcpkg-cache/install.sh index af82d9a0cc..cbd928d068 100644 --- a/.devcontainer/features/vcpkg-cache/install.sh +++ b/.devcontainer/features/vcpkg-cache/install.sh @@ -5,6 +5,14 @@ set -e # FIXME: Add some options to make this more flexible and usable by other projects # FIXME: Find a way to do this without cloning ladybird +case "$(uname -m)" in + x86_64|x64) + ;; + *) + export VCPKG_FORCE_SYSTEM_BINARIES=1 + ;; +esac + cd /tmp CACHE_DIR=/usr/local/share/vcpkg-binary-cache