diff options
author | midipix <writeonce@midipix.org> | 2021-06-08 15:12:32 +0000 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2021-06-08 15:31:10 +0000 |
commit | 6b0a6416e182d21237e0489b3c79141817e0eb82 (patch) | |
tree | 450e474679c8ebe46cb97ca2a9741ffc7b776f5f | |
parent | 27f6f6976a0257fc3099e019b3723bc2b4228e0d (diff) | |
download | bfirm-6b0a6416e182d21237e0489b3c79141817e0eb82.tar.bz2 bfirm-6b0a6416e182d21237e0489b3c79141817e0eb82.tar.xz |
build system: ccenv: support --cchost with strict compiler drivers.
-rw-r--r-- | sofort/ccenv/ccenv.sh | 5 |
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 |