summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2025-01-13 22:44:57 +0800
committerruki <[email protected]>2025-01-13 22:44:57 +0800
commita0e5f4def3e2f2464069d1a82810825137b4cdec (patch)
tree62d92d709cab734166e482823c8f4dc5001af901
parenta63b9985d18531937fac56437f8baf71a879883b (diff)
show clang version
-rw-r--r--.github/workflows/linux.yml1
-rw-r--r--tests/projects/c++/modules/test_headerunits.lua2
2 files changed, 2 insertions, 1 deletions
diff --git a/.github/workflows/linux.yml b/.github/workflows/linux.yml
index afbe7486b..d4f1eeb12 100644
--- a/.github/workflows/linux.yml
+++ b/.github/workflows/linux.yml
@@ -32,6 +32,7 @@ jobs:
sudo apt update
sudo apt install -y ruby ruby-dev rubygems build-essential llvm libc++-dev
sudo apt install -y libgl1-mesa-dev libglu1-mesa-dev
+ clang --version
- name: Tests
run: |
diff --git a/tests/projects/c++/modules/test_headerunits.lua b/tests/projects/c++/modules/test_headerunits.lua
index 70e8b3d51..3a772d514 100644
--- a/tests/projects/c++/modules/test_headerunits.lua
+++ b/tests/projects/c++/modules/test_headerunits.lua
@@ -51,7 +51,7 @@ function main(t)
end
local clang = find_tool("clang", {version = true})
if clang and clang.version then
- if semver.compare(clang.version, "15.0") >= 0 then
+ if semver.compare(clang.version, "16.0") >= 0 then
os.exec("xmake clean -a")
-- clang-scan-deps dependency detection doesn't support header units atm
os.exec("xmake f --toolchain=clang --policies=build.c++.clang.fallbackscanner -c --yes")