Skip to content

Commit

Permalink
build: Allow host builds when cross-compiling
Browse files Browse the repository at this point in the history
Environments that set up execution wrappers when cross-compiling should
be allowed to run code. We only fall back on external properties if we
really can't run any native code on the host machine.
  • Loading branch information
ebassi committed Aug 10, 2023
1 parent a0595ec commit c19d1f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ int main() {
return 0;
}
'''
if meson.is_cross_build()
if not meson.can_run_host_binaries()
ieee754_float_div = meson.get_external_property('ieee754_float_div', cc.get_id() in ['gcc', 'clang'])
message('Cross-building, assuming IEEE 754 division:', ieee754_float_div)
else
Expand Down

0 comments on commit c19d1f4

Please sign in to comment.