mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-06 14:27:16 +00:00
(svn r16823) -Cleanup: use cxx_host instead of cc_host where possible; cc_host is there only for working around a few stupid compilers.
This commit is contained in:
parent
64cc21855f
commit
f7c4711012
@ -1613,7 +1613,7 @@ check_strip() {
|
|||||||
elif [ "$os" = "OSX" ]; then
|
elif [ "$os" = "OSX" ]; then
|
||||||
# Most targets have -V in strip, to see if they exists... OSX doesn't.. so execute something
|
# Most targets have -V in strip, to see if they exists... OSX doesn't.. so execute something
|
||||||
echo "int main(int argc, char *argv[]) { }" > strip.test.c
|
echo "int main(int argc, char *argv[]) { }" > strip.test.c
|
||||||
$cc_host strip.test.c -o strip.test
|
$cxx_host strip.test.c -o strip.test
|
||||||
check_compiler "host strip" "strip" "$host" "$strip" "$STRIP" "strip" "strip" "3" "strip.test"
|
check_compiler "host strip" "strip" "$host" "$strip" "$STRIP" "strip" "strip" "3" "strip.test"
|
||||||
rm -f strip.test.c strip.test
|
rm -f strip.test.c strip.test
|
||||||
else
|
else
|
||||||
@ -1624,7 +1624,7 @@ check_strip() {
|
|||||||
check_lipo() {
|
check_lipo() {
|
||||||
if [ "$os" = "OSX" ] && [ "$enable_universal" != "0" ]; then
|
if [ "$os" = "OSX" ] && [ "$enable_universal" != "0" ]; then
|
||||||
echo "int main(int argc, char *argv[]) { }" > lipo.test.c
|
echo "int main(int argc, char *argv[]) { }" > lipo.test.c
|
||||||
$cc_host lipo.test.c -o lipo.test
|
$cxx_host lipo.test.c -o lipo.test
|
||||||
check_compiler "host lipo" "lipo" "$host" "$lipo" "$LIPO" "lipo" "lipo" "4" "-info lipo.test"
|
check_compiler "host lipo" "lipo" "$host" "$lipo" "$LIPO" "lipo" "lipo" "4" "-info lipo.test"
|
||||||
rm -f lipo.test.c lipo.test
|
rm -f lipo.test.c lipo.test
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user