Skip to content

Commit

Permalink
Devcontainer: Set VCPKG_FORCE_SYSTEM_BINARIES when building cache
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ADKaster committed Feb 18, 2025
1 parent de7ca7b commit dda1573
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .devcontainer/features/vcpkg-cache/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dda1573

Please # to comment.