Replies: 1 comment 1 reply
-
https://github.com/xmake-io/xmake/tree/dev/tests/projects/c%2B%2B/modules/stdmodules
没这个工具链,不要瞎写,只有 llvm xmake f --toolchain=llvm --sdk=/xxxx/llvm -c or xmake/tests/projects/package/toolchain_llvm/xmake.lua Lines 2 to 7 in f11f39b |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
使用VS的配置成功了,使用LLVM一直没成功,参考这个文章改的也不行:https://www.kitware.com/import-std-in-cmake-3-30/
xmake.lua
`
add_rules("mode.debug", "mode.release")
toolchain("llvm19rc")
set_kind("standalone")
set_sdkdir("D:/Dev/LLVM/19.1.0-rc2")
set_bindir("D:/Dev/LLVM/19.1.0-rc2/bin")
toolchain_end()
set_languages("c++latest")
target("data")
set_kind("binary")
add_files("src/*.cpp")
set_toolchains("llvm19rc")
set_policy("build.c++.modules", true)
`
Beta Was this translation helpful? Give feedback.
All reactions