xmake库使用不同编译器更新。

This commit is contained in:
2026-03-05 14:12:21 +08:00
parent bb519403e5
commit fdbb28d6c0

View File

@@ -28,6 +28,8 @@ target("zoost-use")
xrepo install -p windows --vs=2017 --toolchain=msvc zoost xrepo install -p windows --vs=2017 --toolchain=msvc zoost
xrepo install -p windows --vs=2022 --toolchain=msvc zoost xrepo install -p windows --vs=2022 --toolchain=msvc zoost
这种来指定不同的库版本。当然工程中也需要指定如xmake f --vs=2022 --toolchain=msvc来对应。 这种来指定不同的库版本。当然工程中也需要指定如xmake f --vs=2022 --toolchain=msvc来对应。
后续使用发现,指定了--vs=2022 --toolchain=msvc应该会自适应编译器版本,但是--toolchain=msvc
必须要设定,不能光设定--vs=2022。
【2】xmake的基本配置 【2】xmake的基本配置