summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2021-06-08 15:12:32 +0000
committermidipix <writeonce@midipix.org>2021-06-08 15:31:10 +0000
commit42085e2b0a4dfd15ffb335377475b6ce53a9001a (patch)
treee43026767664772b9f2bb7a4b6a7b84c0b6aa908
parent0cf24744ac318ea824dcff7099bccd7e772ce920 (diff)
downloadmdso-42085e2b0a4dfd15ffb335377475b6ce53a9001a.tar.bz2
mdso-42085e2b0a4dfd15ffb335377475b6ce53a9001a.tar.xz
build system: ccenv: support --cchost with strict compiler drivers.
-rw-r--r--sofort/ccenv/ccenv.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/sofort/ccenv/ccenv.sh b/sofort/ccenv/ccenv.sh
index 47fc587..d0e808d 100644
--- a/sofort/ccenv/ccenv.sh
+++ b/sofort/ccenv/ccenv.sh
@@ -560,7 +560,10 @@ ccenv_set_cc()
$ccenv_dumpmachine_switch 2>&3)
fi
- if [ "$ccenv_cchost" != "$ccenv_host" ]; then
+ if [ -z "$ccenv_dumpmachine_switch" ] && [ -n "$ccenv_host" ]; then
+ ccenv_cchost="$ccenv_host"
+
+ elif [ "$ccenv_cchost" != "$ccenv_host" ]; then
printf 'error!\n' >&2
printf 'ccenv:\n' >&2
printf 'ccenv: ccenv_host: %s \n' $ccenv_host >&2