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

load toolchain in virtual environment #1389

Closed
xq114 opened this issue May 8, 2021 · 2 comments
Closed

load toolchain in virtual environment #1389

xq114 opened this issue May 8, 2021 · 2 comments

Comments

@xq114
Copy link
Contributor

xq114 commented May 8, 2021

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

windows下加载virtual environment时希望能同时加载vs的环境变量;clang等toolchain同理

描述可能的解决方案

在加载virtual environment的时候加载toolchain环境变量

其他信息

使用时发现环境变量中的路径有重复的,可以在获取环境变量时加一个去重

@waruqi
Copy link
Member

waruqi commented May 8, 2021

可以通过 xmake.lua / set_toolchains("msvc") 方式配置上工具链信息,不过我暂时没空整,先放着吧。

@waruqi waruqi added this to the v2.5.5 milestone May 8, 2021
@waruqi
Copy link
Member

waruqi commented Jun 6, 2021

我加上支持了,用 set_toolchains("msvc")

其他的 clang 什么的,不需要用 set_toolchains,直接走 add_requires("llvm") 包就行了。

有包的尽量走包,目前仅有 msvc toolchain 才附带了 envs

@waruqi waruqi closed this as completed Jun 7, 2021
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

2 participants