切换msvc 2019工具链后,.xmake/windows/xmake.conf里的版本还是2022 #3780
Replies: 1 comment
-
这不是已经切了么。。
你不用管那个输出 和 conf 里面,set_toolchains 是针对每个 target 切的工具链,最上面那个 2022 输出是全局的平台工具链,不管你用 set_toolchains 切什么工具链,只要还是 windows 平台编译,全局的平台工具链,一直是这个,只有 但这不影响你用 set_toolchains 对单独的 target 进行工具链切换,这个优先级高于全局的默认平台工具链。。 你要看 xmake -vD 实际编译这个 target ,用了哪个版本的编译器,不用管 xmake.conf 的输出。。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
xmake:2.7.9
系统:windows10
set_toolchains("msvc",{vs="2019"}) --这是全局里配置的
切换后配置文件还是2022,我使用
local vs = import("core.tool.toolchain").load("msvc"):config("vs") -- 这是写在rules里的 也是输出2022
Beta Was this translation helpful? Give feedback.
All reactions