-
Notifications
You must be signed in to change notification settings - Fork 63
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adding MSVC arm64 crossfile to try getting an ARM64 executable out Signed-off-by: Tyler Erickson <[email protected]>
- Loading branch information
1 parent
097d6f5
commit 448ef0a
Showing
2 changed files
with
42 additions
and
0 deletions.
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,30 @@ | ||
#See https://mesonbuild.com/Cross-compilation.html | ||
#and https://mesonbuild.com/Machine-files.html | ||
#and https://mesonbuild.com/Reference-tables.html#cpu-families | ||
#example usage of this file: | ||
# meson setup --buildtype=release --cross-file=./meson_crosscompile/msvc_arm64.txt crossbuild_msvc_arm64 | ||
# ninja -C crossbuild_msvc_arm64 | ||
|
||
#NOTE: You must execute the vcvarsamd64_arm64.bat to set this environment up first. This is essentially the | ||
# setup for the developer command prompt for cross-tool compiling to arm64. | ||
|
||
[binaries] | ||
c = 'cl.exe' | ||
ld = 'link.exe' | ||
strip = 'strip' | ||
|
||
[properties] | ||
has_function_printf = true | ||
skip_sanity_check = true | ||
|
||
[host_machine] | ||
system = 'windows' | ||
subsystem = 'windows' | ||
kernel = 'nt' | ||
cpu_family = 'aarch64' | ||
cpu = 'armv8' | ||
endian = 'little' | ||
|
||
[built-in options] | ||
default_library='static' | ||
|