Skip to content

Commit

Permalink
allow overwriting the command used to run dockcross
Browse files Browse the repository at this point in the history
  • Loading branch information
pschichtel committed Feb 10, 2024
1 parent 8846798 commit 5e515cc
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions compile-native.sh
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,10 @@ compiler_output_dir="${compiler_dir}/${classifier}"
mkdir -p "$compiler_output_dir" 2>/dev/null
proxy="${compiler_output_dir}/proxy"


if [ -n "$(which podman)" ]
if [ -n "${RUN_CONTAINER_COMMAND:-}" ]
then
${RUN_CONTAINER_COMMAND} "$dockcross_image"
elif [ -n "$(which podman)" ]
then
podman run --rm "$dockcross_image" > "$proxy"
elif [ -n "$(which docker)" ]
Expand Down

0 comments on commit 5e515cc

Please sign in to comment.