Skip to content

add arm build#5552

Open
john-peterson wants to merge 1 commit into
doitsujin:masterfrom
john-peterson:arm
Open

add arm build#5552
john-peterson wants to merge 1 commit into
doitsujin:masterfrom
john-peterson:arm

Conversation

@john-peterson
Copy link
Copy Markdown

it should find the include dir from compiler

echo | aarch64-w64-mingw32-clang++ -E -Wp,-v -xc++ -

but I left some code anyway if some one need more dirs

I ended up linking the necessary folders

ln -s $P/include/spirv $P/opt/llvm-mingw-w64/generic-w64-mingw32/include/
ln -s $P/include/vulkan $P/opt/llvm-mingw-w64/generic-w64-mingw32/include/
ln -s $P/include/vk_video $P/opt/llvm-mingw-w64/generic-w64-mingw32/include/

I am building in termux with

meson setup out --wipe --cross-file build-arm64.txt --prefix=$P

it should find the include dir from compiler

echo | aarch64-w64-mingw32-clang++ -E -Wp,-v -xc++ -

but I left some code anyway if some one need  more dirs

I ended up linking the necessary folders

ln -s $P/include/spirv $P/opt/llvm-mingw-w64/generic-w64-mingw32/include/
ln -s $P/include/vulkan $P/opt/llvm-mingw-w64/generic-w64-mingw32/include/
ln -s $P/include/vk_video $P/opt/llvm-mingw-w64/generic-w64-mingw32/include/

I am building in termux with

meson setup out --wipe --cross-file build-arm64.txt --prefix=$P
@pchome
Copy link
Copy Markdown
Contributor

pchome commented Mar 17, 2026

Cross-files are pretty much standard, no need to pull all possible variants into the project.
Maybe some examples could be in wiki.

https://mesonbuild.com/Cross-compilation.html#cross-file-locations

Distributions are encouraged to ship cross files either with their cross compiler toolchain packages or as a standalone package, and put them in one of the system paths referenced above.

These files can be loaded automatically without adding a path to the cross file. For example, if a ~/.local/share/meson/cross contains a file called x86-linux, then the following command would start a cross build using that cross files:

meson setup builddir/ --cross-file x86-linux

@mati865
Copy link
Copy Markdown

mati865 commented May 22, 2026

Shouldn't this use Clang rather than GCC considering it's the only supported compiler?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants