mirror of
https://github.com/containers/podman.git
synced 2025-08-03 01:37:51 +08:00
Build cross-compilation fixes
Signed-off-by: Arthur Sengileyev <arthur.sengileyev@gmail.com>
This commit is contained in:
@ -10,7 +10,8 @@ SOURCES=${@:3} ## directories to find markdown files
|
||||
# invoked in a cross-compilation environment, so even if PLATFORM=windows
|
||||
# we need an actual executable that we can invoke).
|
||||
if [[ -z "$PODMAN" ]]; then
|
||||
case $(env -i HOME=$HOME PATH=$PATH go env GOOS) in
|
||||
DETECTED_OS=$(env -i HOME="$HOME" PATH="$PATH" go env GOOS)
|
||||
case $DETECTED_OS in
|
||||
windows)
|
||||
PODMAN=bin/windows/podman.exe ;;
|
||||
darwin)
|
||||
|
Reference in New Issue
Block a user