summaryrefslogtreecommitdiff
path: root/tests/projects/c++/modules/test_base.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2023-01-12 08:36:43 +0800
committerGitHub <[email protected]>2023-01-12 08:36:43 +0800
commit4a911fb47f4fd12cefbc4580d5ddceb9f65b9a81 (patch)
tree738e993d5055ec7e701e31631dd5818510f8f95a /tests/projects/c++/modules/test_base.lua
parent15733580777f5a1c0a15da835a27d2c832539c93 (diff)
parent9793894c1d2e055a4cfe044002bea4c7e6bb075d (diff)
Merge pull request #3255 from Arthapz/improve-clang-modules-support-with-libc++
improve clang libc++ module support
Diffstat (limited to 'tests/projects/c++/modules/test_base.lua')
-rw-r--r--tests/projects/c++/modules/test_base.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/projects/c++/modules/test_base.lua b/tests/projects/c++/modules/test_base.lua
index 4aee9f8e7..efef15520 100644
--- a/tests/projects/c++/modules/test_base.lua
+++ b/tests/projects/c++/modules/test_base.lua
@@ -16,7 +16,7 @@ function main(t)
_build()
elseif is_host("linux") then
local gcc = find_tool("gcc", {version = true})
- if gcc and gcc.version and semver.compare(gcc.version, "11.0") >= 0 then
+ if is_host("linux") and gcc and gcc.version and semver.compare(gcc.version, "11.0") >= 0 then
os.exec("xmake f -c")
_build()
end
@@ -25,6 +25,9 @@ function main(t)
os.exec("xmake clean -a")
os.exec("xmake f --toolchain=clang -c")
_build()
+ os.exec("xmake clean -a")
+ os.exec("xmake f --toolchain=clang --cxxflags=\"-stdlib=libc++\" -c")
+ _build()
end
end
end