summaryrefslogtreecommitdiff
path: root/tests/projects
diff options
context:
space:
mode:
authorruki <[email protected]>2025-03-07 11:35:41 +0800
committerGitHub <[email protected]>2025-03-07 11:35:41 +0800
commit1c6af0d56d9c6d4b6e0fc91a5c47c8ba6ed2a2c5 (patch)
treea5ff151620d489ebc8051bea9d382d1ad883bcda /tests/projects
parenta697325de5e02b1e94e2e79bc52dae4184331136 (diff)
parente6809b94206cb4ec9bc05baa0f09567ebb5d67e9 (diff)
Merge pull request #6182 from star-hengxing/clang
Support msstl modules for clang
Diffstat (limited to 'tests/projects')
-rw-r--r--tests/projects/c++/modules/test_stdmodules.lua7
1 files changed, 2 insertions, 5 deletions
diff --git a/tests/projects/c++/modules/test_stdmodules.lua b/tests/projects/c++/modules/test_stdmodules.lua
index 0fcd0c9b1..d9b25ef56 100644
--- a/tests/projects/c++/modules/test_stdmodules.lua
+++ b/tests/projects/c++/modules/test_stdmodules.lua
@@ -20,12 +20,9 @@ end
function main(t)
if is_subhost("windows") then
local clang = find_tool("clang", {version = true})
- if clang and clang.version and semver.compare(clang.version, "20.0") >= 0 then
- -- clang don't support msstl std modules atm
- -- os.exec("xmake f --toolchain=clang -c --yes")
- -- _build()
+ if clang and clang.version and semver.compare(clang.version, "19.0") >= 0 then
os.exec("xmake clean -a")
- os.exec("xmake f --toolchain=clang --runtimes=c++_shared -c --yes")
+ os.exec("xmake f --toolchain=clang -c --yes")
_build()
end
local msvc = toolchain.load("msvc")