You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Originally posted by xq114 February 20, 2022
目前要创建虚拟环境必须自己写env.lua,但写虚拟环境这个过程很容易出错(没有详细的文档,set_toolchains容易写成set_toolchain等),xmake可以加一些内置的虚拟环境来方便上手使用,也作为用户编写自己虚拟环境的参考。
举例一些常用的虚拟环境:
-- msvc.lua
if is_host("windows") then
set_toolchains("msvc")
end
Discussed in #2069
Originally posted by xq114 February 20, 2022
目前要创建虚拟环境必须自己写env.lua,但写虚拟环境这个过程很容易出错(没有详细的文档,set_toolchains容易写成set_toolchain等),xmake可以加一些内置的虚拟环境来方便上手使用,也作为用户编写自己虚拟环境的参考。
举例一些常用的虚拟环境:
等等。后面两个可能有待商榷,第一个msvc.lua需求量肯定很多。内置msvc环境之后,用户想在命令行使用msvc工具无需再手动配置,直接运行
就行了,省去了命令行使用msvc的诸多不便。
The text was updated successfully, but these errors were encountered: