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

Windows ARM Support? #2140

Closed
chachako opened this issue Mar 9, 2022 · 9 comments
Closed

Windows ARM Support? #2140

chachako opened this issue Mar 9, 2022 · 9 comments
Milestone

Comments

@chachako
Copy link

chachako commented Mar 9, 2022

Is your feature request related to a problem? Please describe.

我正在编写可能会在 Windows ARM 平台上运行的 Rust & C++ 程序,输入 xmake f -h 命令发现 windows 只有 x86 和 x64 的架构支持,我看到 Rust 貌似已经支持了 https://doc.rust-lang.org/nightly/rustc/platform-support.html#tier-2-with-host-tools

Describe the solution you'd like

是否会支持/已经支持?

Describe alternatives you've considered

No response

Additional context

image

@waruqi
Copy link
Member

waruqi commented Mar 9, 2022

之前有人提过这个了 #2042

我也很想支持,但是我没 windows arm 环境,用 qemu 捣鼓又太折腾,而且我本机也没磁盘空间去安装其他系统了

谁有环境,可以直接拉代码帮忙加上支持后提个pr过来

@xiaomi2077
Copy link

linux arm呢,有考虑吗,大佬

@waruqi
Copy link
Member

waruqi commented Jun 9, 2022

linux arm呢,有考虑吗,大佬

原本就支持,还要考虑什么?

@xiaomi2077
Copy link

xiaomi2077 commented Jun 9, 2022

我是aarch64的板子,原来想通过下面的添加源方式安装,但是添加源了,没有搜到xmake。以为不支持。不过现在通过脚本安装上了
截屏-20220609191803-499x306

@Winterreisender
Copy link

在x64平台下安装的Visual Studio自带了一个编译到ARM64的编译器,C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC\14.32.31326\bin\Hostx64\arm64\cl.exe

对于简单的程序,直接将cl.exe的路径换一下就可以正常编译,其他的都不需要动,有没有别的方法间接实现arm64支持?比如设置--sdk之类的(试过没成功)

@waruqi
Copy link
Member

waruqi commented Aug 7, 2022

理论上直接 xmake f -a arm64 就行了,但是我没arm64环境,暂时测不了,也许要做一些改动才能支持。你们有环境的 可以自己研究下 提个pr过来

@waruqi
Copy link
Member

waruqi commented Aug 7, 2022

只需要 xmake f -a arm64,不需要设置其他任何参数

@Winterreisender
Copy link

Winterreisender commented Aug 7, 2022

只需要 xmake f -a arm64,不需要设置其他任何参数

抱歉,已经改正了。

因为看到看到输出
Visual Studio (arm64) no
以为是编译失败了折腾了半天

@waruqi
Copy link
Member

waruqi commented Aug 28, 2022

#2728

我支持了

xmake g -c
xmake f -a arm64 -c

@waruqi waruqi closed this as completed Aug 28, 2022
@waruqi waruqi added this to the v2.7.2 milestone Aug 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants