diff options
| author | Arthur LAURENT <[email protected]> | 2024-02-02 14:20:55 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-02-02 14:20:55 +0100 |
| commit | 99197a6ffd65bebd814845033548e4012875c313 (patch) | |
| tree | aa0dda3e2267ce4c1034c38a6c4dabd7d413baf0 /tests/projects/c++/modules/test_stdmodules.lua | |
| parent | e449836c75d31664d14ad237c65d8416447bbf87 (diff) | |
support libc++ std module
Diffstat (limited to 'tests/projects/c++/modules/test_stdmodules.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_stdmodules.lua | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/tests/projects/c++/modules/test_stdmodules.lua b/tests/projects/c++/modules/test_stdmodules.lua index 222ec9458..c408c1d08 100644 --- a/tests/projects/c++/modules/test_stdmodules.lua +++ b/tests/projects/c++/modules/test_stdmodules.lua @@ -13,15 +13,15 @@ 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, "18.0") >= 0 then + local clang = find_tool("clang", {version = true}) + if clang and clang.version and semver.compare(clang.version, "18.0") >= 0 then + -- clang don't support msstl std modules atm -- os.exec("xmake f --toolchain=clang -c --yes") -- _build() - -- clang don't support libc++ std modules atm - -- os.exec("xmake clean -a") - -- os.exec("xmake f --toolchain=clang --runtimes=c++_shared -c --yes") - -- _build() - -- end + os.exec("xmake clean -a") + os.exec("xmake f --toolchain=clang --runtimes=c++_shared -c --yes") + _build() + end local msvc = toolchain.load("msvc") if msvc and msvc:check() then local vcvars = msvc:config("vcvars") @@ -44,16 +44,15 @@ function main(t) -- os.exec("xmake f -c --yes") -- _build() -- end - -- local clang = find_tool("clang", {version = true}) - -- if clang and clang.version and semver.compare(clang.version, "18.0") >= 0 then + local clang = find_tool("clang", {version = true}) + if clang and clang.version and semver.compare(clang.version, "18.0") >= 0 then -- clang don't support libstdc++ std modules atm -- os.exec("xmake clean -a") -- os.exec("xmake f --toolchain=clang -c --yes") -- _build() - -- clang don't support libc++ std modules atm - -- os.exec("xmake clean -a") - -- os.exec("xmake f --toolchain=clang --runtimes=c++_shared -c --yes") - -- _build() - -- end + os.exec("xmake clean -a") + os.exec("xmake f --toolchain=clang --runtimes=c++_shared -c --yes") + _build() + end end end |
