Skip to content

Commit

Permalink
Merge pull request #258 from ebassi/check-cc-can-run
Browse files Browse the repository at this point in the history
build: Allow host builds when cross-compiling
  • Loading branch information
ebassi authored Aug 10, 2023
2 parents a0595ec + c19d1f4 commit 0cfa05f
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 0cfa05f

Please sign in to comment.