Skip to content

Commit

Permalink
Cross Tool fix
Browse files Browse the repository at this point in the history
  • Loading branch information
danoli3 committed Aug 1, 2024
1 parent 1ec0ba4 commit d58fe7f
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions apothecary/apothecary
Original file line number Diff line number Diff line change
Expand Up @@ -553,23 +553,17 @@ if [ "$TYPE" = "vs" ]; then
if [ -z ${PLATFORM+x} ]; then
if [ $ARCH == 32 ]; then
PLATFORM=x86
CROSS_TOOL="amd64_x86"
elif [ $ARCH == 64 ] || [ $ARCH == "x86_64" ]; then
PLATFORM=x64
CROSS_TOOL="amd64"
elif [ $ARCH == "arm64" ]; then
PLATFORM=x64
CROSS_TOOL="all"
elif [ $ARCH == "arm64ec" ]; then
PLATFORM=x64
CROSS_TOOL="all"
elif [ $ARCH == "arm" ]; then
PLATFORM=x64
CROSS_TOOL="all"
else
echo "ARCH not set $ARCH"
PLATFORM=x64
CROSS_TOOL="all"
fi
fi

Expand Down Expand Up @@ -665,19 +659,24 @@ if [ "$TYPE" = "vs" ]; then
fi
if [ $ARCH == 32 ] ; then
export PLATFORM="Win32"
BUILD_PLATFORM="x86"
export BUILD_PLATFORM="x86"
export CROSS_TOOL="amd64_x86"
elif [ $ARCH == 64 ] || [ $ARCH == "x86_64" ]; then
export PLATFORM="x64"
BUILD_PLATFORM="x64"
export BUILD_PLATFORM="x64"
export CROSS_TOOL="amd64"
elif [ $ARCH == "arm64" ] ; then
export PLATFORM="ARM64"
BUILD_PLATFORM="arm64"
export BUILD_PLATFORM="arm64"
export CROSS_TOOL="all"
elif [ $ARCH == "arm64ec" ] ; then
export PLATFORM="ARM64EC"
BUILD_PLATFORM="arm64"
export BUILD_PLATFORM="arm64"
export CROSS_TOOL="all"
elif [ $ARCH == "arm" ]; then
export PLATFORM="ARM"
BUILD_PLATFORM="arm"
export BUILD_PLATFORM="arm"
export CROSS_TOOL="all"
else
echoError "Apothecary -a not a valid passed architecture:[${ARCH}]"
exit;
Expand Down

0 comments on commit d58fe7f

Please sign in to comment.