diff options
| author | Alex Bennée | 2021-09-17 18:23:22 +0200 |
|---|---|---|
| committer | Alex Bennée | 2021-10-12 09:37:05 +0200 |
| commit | 9557af9ce94d434440d6397fb0d80748e4714e94 (patch) | |
| tree | a46a4866e1458aad2fa88362d862b64b133f4e65 /configure | |
| parent | Merge remote-tracking branch 'remotes/stefanha/tags/block-pull-request' into ... (diff) | |
| download | qemu-9557af9ce94d434440d6397fb0d80748e4714e94.tar.gz qemu-9557af9ce94d434440d6397fb0d80748e4714e94.tar.xz qemu-9557af9ce94d434440d6397fb0d80748e4714e94.zip | |
configure: don't override the selected host test compiler if defined
There are not many cases you would want to do this but one is if you
want to use a test friendly compiler like gcc instead of a system
compiler like clang. Either way we should honour the users choice if
they have made it.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Cc: Warner Losh <imp@bsdimp.com>
Reviewed-by: Warner Losh <imp@bsdimp.com>
Message-Id: <20210917162332.3511179-2-alex.bennee@linaro.org>
Diffstat (limited to 'configure')
| -rwxr-xr-x | configure | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -1686,8 +1686,10 @@ case "$cpu" in # No special flags required for other host CPUs esac -eval "cross_cc_${cpu}=\$cc" -cross_cc_vars="$cross_cc_vars cross_cc_${cpu}" +if eval test -z "\${cross_cc_$cpu}"; then + eval "cross_cc_${cpu}=\$cc" + cross_cc_vars="$cross_cc_vars cross_cc_${cpu}" +fi # For user-mode emulation the host arch has to be one we explicitly # support, even if we're using TCI. |
