Skip to content

Commit

Permalink
ci: Adding MSVC ARM64 crossfile
Browse files Browse the repository at this point in the history
Adding MSVC arm64 crossfile to try getting an ARM64 executable out

Signed-off-by: Tyler Erickson <[email protected]>
  • Loading branch information
vonericsen committed Apr 29, 2024
1 parent 097d6f5 commit 448ef0a
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/meson.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,18 @@ jobs:
release_extension: ".zip",
archive_command: "7z a -tzip -mmt"
}
- {
name: "Windows MSVC ARM64",
os: windows-latest,
cc: "cl.exe",
cxx: "cl.exe",
arch: "x64_arm64",
publish_release: true,
meson_opts: "-Db_vscrt=static_from_buildtype --cross-file=./meson_crosscompile/msvc_arm64.txt",
release_name: "win-ARM64",
release_extension: ".zip",
archive_command: "7z a -tzip -mmt"
}
- {
name: "Windows GCC",
os: windows-latest,
Expand Down
30 changes: 30 additions & 0 deletions meson_crosscompile/msvc_arm64.txt
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'

0 comments on commit 448ef0a

Please sign in to comment.