Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use a specific cross_file on iOS cross compilation.
We need to set the property `needs_exe_wrapper` to true for x86_64 cross compilation. Else, meson will try to detect if we could run the cross compiled executable, and because it is the same arch, it will assume we can. So it will try to sanity check and execute the cross compiled binary. Then fails.
- Loading branch information
1 parent
1d290e0
commit 2938927
Showing
2 changed files
with
22 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
[binaries] | ||
pkgconfig = '{binaries[PKGCONFIG]}' | ||
c = '{binaries[CC]}' | ||
ar = '{binaries[AR]}' | ||
cpp = '{binaries[CXX]}' | ||
strip = '{binaries[STRIP]}' | ||
ranlib = '{binaries[RANLIB]}' | ||
{exe_wrapper_def} | ||
|
||
[properties] | ||
c_link_args = {extra_libs!r} | ||
cpp_link_args = {extra_libs!r} | ||
c_args = {extra_cflags!r} | ||
cpp_args = {extra_cflags!r} | ||
needs_exe_wrapper = true | ||
|
||
[host_machine] | ||
cpu_family = '{host_machine[cpu_family]}' | ||
cpu = '{host_machine[cpu]}' | ||
system = '{host_machine[lsystem]}' | ||
endian = '{host_machine[endian]}' |