diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2025-04-23 19:16:57 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2025-04-24 08:05:31 +0000 |
| commit | 84ca98f9e1bb10f2e754c5fb8e5cc9c58ac6c276 (patch) | |
| tree | e1b63dc3e83522ad9a0398e277a7bb6f9d02918a /pkg/vcs/linux_test.go | |
| parent | 115705cda4423243a7453daae9df02e281f7ba41 (diff) | |
pkg/vcs: use clang-15 for builds up to v6.15
Otherwise we need to backport too many fix commits to address build/boot
errors.
Diffstat (limited to 'pkg/vcs/linux_test.go')
| -rw-r--r-- | pkg/vcs/linux_test.go | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/pkg/vcs/linux_test.go b/pkg/vcs/linux_test.go index 5e81760a2..eb742c625 100644 --- a/pkg/vcs/linux_test.go +++ b/pkg/vcs/linux_test.go @@ -19,9 +19,15 @@ func TestClangVersion(t *testing.T) { expected := binDir + "llvm-9.0.1/bin/clang" assert.Equal(t, actual, expected, "unexpected clang path") - // Recent tag case. + // Older tag case. tags["v5.9"] = true actual = linuxClangPath(tags, binDir, defaultCompiler) + expected = "clang-15" + assert.Equal(t, actual, expected, "unexpected clang path") + + // Recent tag case. + tags["v6.15"] = true + actual = linuxClangPath(tags, binDir, defaultCompiler) expected = defaultCompiler assert.Equal(t, actual, expected, "unexpected clang path") } |
