Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to ARM and ARM64 Windows targets. #2330

Open
woachk opened this issue May 5, 2019 · 6 comments
Open

Add support to ARM and ARM64 Windows targets. #2330

woachk opened this issue May 5, 2019 · 6 comments
Assignees

Comments

@woachk
Copy link

woachk commented May 5, 2019

Related to #558.

ARM and ARM64 Windows targets depend on LLVM-MinGW https://github.com/mstorsjo/llvm-mingw, and aren't usable with a binutils + GCC based toolchain.

@tonytheodore tonytheodore self-assigned this May 6, 2019
@kleisauke
Copy link
Contributor

kleisauke commented Dec 7, 2019

fwiw, I've created a MXE-plugin that uses https://github.com/mstorsjo/llvm-mingw as toolchain, see:
https://github.com/libvips/build-win64-mxe/tree/master/build/plugins/llvm-mingw

I'm considering making a PR to integrate it into MXE as well. Is there any interest in this?

(Still need to test the aarch64-w64-mingw32 target but I don't have the necessary hardware to test it on, unfortunately)

@lunixbochs
Copy link

@kleisauke I am in favor of an in-tree LLVM plugin, I keep running into issues with GCC

@boswelja
Copy link

Any updates on this?

@tonytheodore
Copy link
Member

Adding clang is the next thing on my list now, gcc doesn't yet support newer Macs with M1 chips.

The repo above looks very promising, thanks @kleisauke.

@markghayden
Copy link

Is there any progress on this? The Windows ARM-based Surface tablets are becoming more common and we'd like to compile for them.

@kalibera
Copy link
Contributor

I've extended the libvips plugin slightly and adapted several MXE packages to build for Windwos/aarch64 using llvm-mingw. I've also added a plugin for building native LLVM compilers. I've included flang-new. This is all quick and dirty at this point, but I am sharing in case it was useful in creating a proper LLVM support in MXE. The code is under https://svn.r-project.org/R-dev-web/trunk/WindowsBuilds/winutf8/ucrt3/toolchain_libs/mxe (version 5667 should be most stable at this point). It is sufficient to build R (natively) including recommended packages, so that it passes its own tests. A number of other MXE packages can be built, which are needed for CRAN contributed packages, but that hasn't been tested, yet. This is in scope of the R project (more in https://blog.r-project.org/2023/08/23/will-r-work-on-64-bit-arm-windows/index.html). Of course, it would be great to have proper LLVM support in upstream MXE, not only to support Windows/aarch64, but say also to be able to support other LLVM compilers (e.g. rust).

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

No branches or pull requests

7 participants