configure: Properly test for set crossToolsPrefix and targetArchs.

Now you can specify a --build-cross-tools and then override just
GCC from it with a following --use-clang in the same configure
invocation.
This commit is contained in:
Augustin Cavalier 2017-12-12 20:07:38 -05:00
parent 0d020b8298
commit 36f28382db

6
configure vendored
View File

@ -699,10 +699,14 @@ while [ $# -gt 0 ] ; do
;;
esac
get_build_tool_path clang clang
if [ -n "crossToolsPrefix_$targetArch" ]; then
if [ -z `get_variable "crossToolsPrefix_$targetArch"` ] \
&& [ -z `get_variable buildCrossToolsMachine_$targetArch` ]; then
set_variable crossToolsPrefix_$targetArch llvm-
fi
if ! test "${targetArchs#*$targetArch}" != "$targetArchs"; then
# we have not already added this arch to targetArchs, so add it now
targetArchs="$targetArchs $targetArch"
fi
HAIKU_PACKAGING_ARCHS=
shift 2
;;