xmake库使用不同toolset更新。

This commit is contained in:
2026-03-06 11:45:09 +08:00
parent fdbb28d6c0
commit 0b56988fcd

View File

@@ -30,6 +30,8 @@ xrepo install -p windows --vs=2022 --toolchain=msvc zoost
这种来指定不同的库版本。当然工程中也需要指定如xmake f --vs=2022 --toolchain=msvc来对应。
后续使用发现,指定了--vs=2022 --toolchain=msvc应该会自适应编译器版本,但是--toolchain=msvc
必须要设定,不能光设定--vs=2022。
--比如当在vs2022中安装了v141工具集时,xmake使用
xmake -f --vs_toolset=14.16,而不是v141这种写法。
【2】xmake的基本配置