227885 build system: ccenv: support --cchost with strict compiler drivers.

Authored and Committed by midipix 3 years ago
    build system: ccenv: support --cchost with strict compiler drivers.
    
        
file modified
+4 -1
sofort/ccenv/ccenv.sh CHANGED
@@ -560,7 +560,10 @@ ccenv_set_cc()
560
560
$ccenv_dumpmachine_switch 2>&3)
561
561
fi
562
562
563
- if [ "$ccenv_cchost" != "$ccenv_host" ]; then
563
+ if [ -z "$ccenv_dumpmachine_switch" ] && [ -n "$ccenv_host" ]; then
564
+ ccenv_cchost="$ccenv_host"
565
+
566
+ elif [ "$ccenv_cchost" != "$ccenv_host" ]; then
564
567
printf 'error!\n' >&2
565
568
printf 'ccenv:\n' >&2
566
569
printf 'ccenv: ccenv_host: %s \n' $ccenv_host >&2