mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-22 02:44:38 +00:00
(qb) Make $CROSS_COMPILE affect target OS detection
This commit is contained in:
parent
8620cef48a
commit
600af88507
@ -6,15 +6,26 @@ TEMP_EXE=.tmp
|
||||
|
||||
ECHOBUF="Checking operating system"
|
||||
#echo -n "Checking operating system"
|
||||
case "$(uname)" in
|
||||
'Linux') OS='Linux';;
|
||||
*'BSD') OS='BSD';;
|
||||
'Darwin') OS='Darwin';;
|
||||
'MINGW32'*) OS='MinGW';;
|
||||
'CYGWIN'*) OS='Cygwin';;
|
||||
'Haiku') OS='Haiku';;
|
||||
*) OS="Win32";;
|
||||
esac
|
||||
|
||||
if [ -n "$CROSS_COMPILE" ]; then
|
||||
case "$CROSS_COMPILE" in
|
||||
*'-mingw32'*) OS='Win32';;
|
||||
*);;
|
||||
esac
|
||||
fi
|
||||
|
||||
if [ -z "$OS" ]; then
|
||||
case "$(uname)" in
|
||||
'Linux') OS='Linux';;
|
||||
*'BSD') OS='BSD';;
|
||||
'Darwin') OS='Darwin';;
|
||||
'MINGW32'*) OS='MinGW';;
|
||||
'CYGWIN'*) OS='Cygwin';;
|
||||
'Haiku') OS='Haiku';;
|
||||
*) OS="Win32";;
|
||||
esac
|
||||
fi
|
||||
|
||||
echo "$ECHOBUF ... $OS"
|
||||
|
||||
# Checking for working C compiler
|
||||
|
Loading…
x
Reference in New Issue
Block a user