diff options
| author | Arthur LAURENT <[email protected]> | 2023-01-07 17:44:36 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2023-01-07 17:44:36 +0100 |
| commit | 3755a6f67399b8e42df9f39ec7c506918dbb433a (patch) | |
| tree | 6fdf938868f75790e828c86e64319d0c558885d1 /tests/projects/c++/modules/test_headerunits.lua | |
| parent | 887d301d4117d9fcb36077441fa75fb704e322fc (diff) | |
reenable old clang modules by default and fix tests
Diffstat (limited to 'tests/projects/c++/modules/test_headerunits.lua')
| -rw-r--r-- | tests/projects/c++/modules/test_headerunits.lua | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/projects/c++/modules/test_headerunits.lua b/tests/projects/c++/modules/test_headerunits.lua index 872defb35..747ec6535 100644 --- a/tests/projects/c++/modules/test_headerunits.lua +++ b/tests/projects/c++/modules/test_headerunits.lua @@ -26,10 +26,13 @@ function main(t) end local clang = find_tool("clang", {version = true}) if clang and clang.version and semver.compare(clang.version, "16.0") >= 0 then - os.exec("xmake clean -a") - os.exec("xmake f --toolchain=clang -c") - _build() - -- os.exec("xmake clean -a") there is currently a bug on llvm git that prevent to build STL header units https://github.com/llvm/llvm-project/issues/58540 + if is_host("linux") then + os.exec("xmake clean -a") + os.exec("xmake f --toolchain=clang -c") + _build() + end + -- there is currently a bug on llvm git that prevent to build STL header units https://github.com/llvm/llvm-project/issues/58540 + -- os.exec("xmake clean -a") -- os.exec("xmake f --toolchain=clang --cxxflags=\"-stdlib=libc++\" -c") -- _build() end |
