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

添加在Linux下对Clang-CL的支持 #5444

Open
Redbeanw44602 opened this issue Aug 7, 2024 · 7 comments
Open

添加在Linux下对Clang-CL的支持 #5444

Redbeanw44602 opened this issue Aug 7, 2024 · 7 comments

Comments

@Redbeanw44602
Copy link
Contributor

你在什么场景下需要该功能?

需要在Linux下使用Clang-CL。

描述可能的解决方案

xmake 已经支持 clang-cl 工具链,但是支持似乎不完整。
测试发现在 windows 下可正常使用但 linux 不能(似乎是文件名的问题?)

> xmake f -p windows -a x64 -m debug --toolchain=clang-cl -v
checking for unzip ... /usr/bin/unzip
checking for git ... /usr/bin/git
checking for gzip ... /usr/bin/gzip
checking for tar ... /usr/bin/tar
checking for clang-cl.exe ... no #bug?
checking for the c   compiler (cxx: clang-cl.exe) ... no #bug?
checking for cmake ... no
checking for cmake ... /usr/bin/cmake
checking for xmake::entt ... no
checking for brew ... no
checking for entt ... no
...
note: install or modify (m) these packages (pass -y to skip confirm)?
in xmake-repo:
  -> entt 41aab920 
...
please input: y (y/n/m)

...
checking for clang-cl.exe ... no #bug?
checking for the c compiler (cc: clang-cl.exe) ... no #bug?
error: vs not found!
  => install entt 41aab920 .. failed
error: install failed!

由于 clang-cl 本身支持在 linux 下使用,希望 xmake 也添加在 linux 下对 clang-cl 的支持。

描述你认为的候选方案

N/A

其他信息

msvc sdk 使用这个安装

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Title: Add support for Clang-CL under Linux

@waruqi
Copy link
Member

waruqi commented Aug 7, 2024

这种基于 wine 的暂时不考虑,而且还要在包里支持上切换这个,这种冷门需求。改动大,需求量少,没时间精力搞,包 ci 也不会去维护支持这种情况。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


This type based on wine is not considered for the time being, and it is necessary to switch this in the package support, which is an unpopular demand. The changes are large, the demand is small, there is no time and energy to do it, and the package ci will not maintain and support this situation.

@Redbeanw44602
Copy link
Contributor Author

Redbeanw44602 commented Aug 7, 2024

这种基于 wine 的暂时不考虑,而且还要在包里支持上切换这个,这种冷门需求。改动大,需求量少,没时间精力搞,包 ci 也不会去维护支持这种情况。

不是基于 wine 的,这条链中没有用到 wine。
msvc-wine 只是用来安装 msvc sdk 的,这个正常用 clang-cl 编译需要用到。

用 msvc 编译才会用到 wine,但这里的需求是用 clang-cl 编译。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


This kind of wine-based solution is not considered for the time being, and it is necessary to switch this in the package support, which is an unpopular demand. The changes are large, the demand is small, there is no time and energy to do it, and the package ci will not maintain and support this situation.

Not based on wine, wine is not used in this chain.
msvc-wine is only used to install msvc sdk, which is required for normal compilation with clang-cl.

@waruqi
Copy link
Member

waruqi commented Aug 7, 2024

哦,不过短期内没时间搞,你有兴趣的话,可以直接提个 pr 过来。

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically.


Oh, but I don’t have time to do it in the short term. If you are interested, you can submit a PR directly.

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

3 participants