diff options
| author | Arthur LAURENT <[email protected]> | 2025-11-04 12:42:45 +0100 |
|---|---|---|
| committer | ruki <[email protected]> | 2025-12-18 09:31:43 +0800 |
| commit | 5dcd669f6e3017d6939af6fd391803c13395406a (patch) | |
| tree | b556d829a3e874be558ac16a29708bc321acfd6f /tests/projects | |
| parent | 7a1be435eef977b88a2855df9bafc4ebeca1843e (diff) | |
fix(llvm) fix nf_runtime clang
Diffstat (limited to 'tests/projects')
| -rw-r--r-- | tests/projects/c/llvm_compiler_rt/test.lua | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/projects/c/llvm_compiler_rt/test.lua b/tests/projects/c/llvm_compiler_rt/test.lua index 3d9fd2cad..b2b39f1a8 100644 --- a/tests/projects/c/llvm_compiler_rt/test.lua +++ b/tests/projects/c/llvm_compiler_rt/test.lua @@ -1,15 +1,16 @@ import("lib.detect.find_tool") +import("core.tool.toolchain") import("utils.ci.is_running", {alias = "ci_is_running"}) function main(t) local flags = "" if ci_is_running() then - flags = "-vD" + flags = "-vD" end - local cc = find_tool("clang", {version = true}) - if not cc then - wprint("clang not found, skipping tests") + local llvm = toolchain.load("llvm") + if not llvm or not llvm:check() then + wprint("llvm not found, skipping tests") return end os.exec("xmake clean -a") |
