Skip to content

Commit

Permalink
fix: export VCPKG_FORCE_SYSTEM_BINARIES for arm, aarch, riscv, s3890,…
Browse files Browse the repository at this point in the history
… ppc64 (#16)

Close #15 

Signed-off-by: msclock <[email protected]>
  • Loading branch information
msclock authored Apr 20, 2024
1 parent 85f4817 commit 3908714
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/vcpkg/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,14 @@ updaterc "$(
cat <<EOF
export VCPKG_ROOT="${VCPKG_ROOT}"
if [[ "\${PATH}" != *"\${VCPKG_ROOT}"* ]]; then export PATH="\${VCPKG_ROOT}:\${PATH}"; fi
# https://github.com/microsoft/vcpkg-tool/blob/2024-03-29/src/vcpkg.cpp#L273C80-L277
if [[ "\$(uname -m)" == *"arm"* ]] ||
[[ "\$(uname -m)" == *"aarch"* ]] ||
[[ "\$(uname -m)" == *"riscv"* ]] ||
[[ "\$(uname -m)" == "s390x" ]] ||
[[ "\$(uname -m)" == *"ppc64"* ]]; then
export VCPKG_FORCE_SYSTEM_BINARIES=1
fi
EOF
)"

Expand Down

0 comments on commit 3908714

Please sign in to comment.