Skip to content

Commit

Permalink
add support for Linux cross-builds try 2
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Aug 30, 2023
1 parent 422ce2d commit 4620f73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -571,7 +571,7 @@ build_single_target() {
if [ "${_OS}" = 'linux' ]; then
# Include CRT type in Linux triplets, to make it visible in
# the curl version banner.
_TRIPLET="${_BUILD_HOST}-${_CRT}"
_TRIPLET="${_machine}-pc-linux-${_CRT}"

if [ "${unamem}" != "${_machine}" ] && [ "${_CC}" = 'gcc' ]; then
# TODO: Implement cross-builds for gcc
Expand Down Expand Up @@ -1104,12 +1104,12 @@ elif [ "${_OS}" = 'mac' ]; then
./_macuni.sh
fi
elif [ "${_OS}" = 'linux' ]; then
if [ "${_BRANCH#*a64*}" = "${_BRANCH}" ]; then
build_single_target x64
fi
if [ "${_BRANCH#*x64*}" = "${_BRANCH}" ]; then
build_single_target a64
fi
if [ "${_BRANCH#*a64*}" = "${_BRANCH}" ]; then
build_single_target x64
fi
fi

case "${_HOSTOS}" in
Expand Down

0 comments on commit 4620f73

Please sign in to comment.