Merge pull request #710 from thewtex/mac-m1

dockcross-script: Specify --platform flag
This commit is contained in:
Matt McCormick 2022-07-02 12:29:51 -04:00 committed by GitHub
commit d45d925ee6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -242,6 +242,7 @@ TTY_ARGS=
tty -s && [ -z "$MSYS" ] && TTY_ARGS=-ti tty -s && [ -z "$MSYS" ] && TTY_ARGS=-ti
CONTAINER_NAME=dockcross_$RANDOM CONTAINER_NAME=dockcross_$RANDOM
$OCI_EXE run $TTY_ARGS --name $CONTAINER_NAME \ $OCI_EXE run $TTY_ARGS --name $CONTAINER_NAME \
--platform linux/amd64 \
-v "$HOST_PWD":/work \ -v "$HOST_PWD":/work \
$HOST_VOLUMES \ $HOST_VOLUMES \
"${USER_IDS[@]}" \ "${USER_IDS[@]}" \