diff options
| author | ruki <[email protected]> | 2022-08-08 21:01:10 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-08-08 21:01:10 +0800 |
| commit | c6ee1e60c83626215ba3f1bf8471fcc72ab3d4b4 (patch) | |
| tree | 3e1f8f56cb3c27271cc652a3aec2d27ea7720f4b /tests/projects/c++/modules/staticlib | |
| parent | d32859aa18fe79e2876bdb793956c15e0479aaee (diff) | |
fix tests
Diffstat (limited to 'tests/projects/c++/modules/staticlib')
| -rw-r--r-- | tests/projects/c++/modules/staticlib/test.lua | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/projects/c++/modules/staticlib/test.lua b/tests/projects/c++/modules/staticlib/test.lua index 76b141d6b..b2cc5b3da 100644 --- a/tests/projects/c++/modules/staticlib/test.lua +++ b/tests/projects/c++/modules/staticlib/test.lua @@ -5,13 +5,15 @@ function main(t) local test = false if is_subhost("windows") then test = true - elseif is_host("linux", "macosx") then + 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 + test = true + end + elseif is_host("macosx") then local clang = find_tool("clang", {version = true}) if clang and clang.version and semver.compare(clang.version, "14.0") >= 0 then test = true - elseif gcc and gcc.version and semver.compare(gcc.version, "11.0") >= 0 then - test = true end end if test then |
