From a0e5f4def3e2f2464069d1a82810825137b4cdec Mon Sep 17 00:00:00 2001 From: ruki Date: Mon, 13 Jan 2025 22:44:57 +0800 Subject: show clang version --- .github/workflows/linux.yml | 1 + tests/projects/c++/modules/test_headerunits.lua | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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") -- cgit v1.3.1