aboutsummaryrefslogtreecommitdiff
path: root/scripts/qapi/commands.py
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2023-04-18 17:15:54 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2023-04-20 11:17:36 +0200
commitc0c34c9105cb2c30222eb8f94005a326ad02efc0 (patch)
tree8e8e1ac56a7557c5f5931793d96a54595144c75c /scripts/qapi/commands.py
parent32a9d73579b3383cecee84683b1222615a0501bf (diff)
downloadqemu-c0c34c9105cb2c30222eb8f94005a326ad02efc0.zip
qemu-c0c34c9105cb2c30222eb8f94005a326ad02efc0.tar.gz
qemu-c0c34c9105cb2c30222eb8f94005a326ad02efc0.tar.bz2
configure: Honour cross-prefix when finding ObjC compiler
Currently when configure picks an ObjectiveC compiler it doesn't pay attention to the cross-prefix. This isn't a big deal in practice, because we only use ObjC on macos and you can't cross-compile to macos. But it's a bit inconsistent. Rearrange the handling of objcc in configure so that we do the same thing that we do with cc and cxx. This means that the logic for picking the ObjC compiler goes from: if --objcc is specified, use that otherwise if clang is available, use that otherwise use $cc to: if --objcc is specified, use that otherwise if --cross-prefix is specified, use ${cross_prefix}clang otherwise if clang is available, use that otherwise use $cc Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1185 Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20230418161554.744834-1-peter.maydell@linaro.org> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/qapi/commands.py')
0 files changed, 0 insertions, 0 deletions