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

improve environment management on powershell #1368

Merged
merged 2 commits into from
Apr 28, 2021
Merged

improve environment management on powershell #1368

merged 2 commits into from
Apr 28, 2021

Conversation

xq114
Copy link
Contributor

@xq114 xq114 commented Apr 27, 2021

xmake增加一个接口输出prompt,增加一个接口生成设置环境变量的脚本,我这里取的xrepo env --info promptxrepo env --info shell.powershell,这些后面都可以改

增加一个命令xrepo env deactivate退出环境,这个现在只对powershell生效

现在的env activation还比较慢,一个仅有几个依赖的project里_package_addenvs()函数用时在8~10s左右,还有很大的优化空间

scripts/xrepo.ps1 Outdated Show resolved Hide resolved
@waruqi
Copy link
Member

waruqi commented Apr 28, 2021

现在的env activation还比较慢,一个仅有几个依赖的project里_package_addenvs()函数用时在8~10s左右,还有很大的优化空间

为啥会这么慢,按理 add envs 应该很快才对,我这边测试 没遇到这个问题么。

@waruqi waruqi merged commit 6a65b90 into xmake-io:dev Apr 28, 2021
@waruqi waruqi mentioned this pull request Apr 29, 2021
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.

2 participants