[clang] [clang] Make serenity.cpp tests pass on clang-with-thin-lto-ubuntu (PR #192231)

Lucas Chollet via cfe-commits cfe-commits at lists.llvm.org
Wed Apr 15 03:43:14 PDT 2026


https://github.com/LucasChollet created https://github.com/llvm/llvm-project/pull/192231

LTO_FULL-NOT was definitely too generic and prone to matching unrelated content. It would, as an example, match against the build path on clang-with-thin-lto-ubuntu builder [1].

Making the match more restrictive should avoid this kind of issues.

[1] https://lab.llvm.org/buildbot/#/builders/127/builds/6956

>From 175fc87d7e2d1301bd4c96657eae57be5da3dadf Mon Sep 17 00:00:00 2001
From: Lucas Chollet <lucas.chollet at serenityos.org>
Date: Wed, 15 Apr 2026 12:37:25 +0200
Subject: [PATCH] [clang] Make serenity.cpp tests pass on
 clang-with-thin-lto-ubuntu

LTO_FULL-NOT was definitely too generic and prone to matching unrelated
content. It would, as an example, match against the build path on
clang-with-thin-lto-ubuntu builder [1].

Making the match more restrictive should avoid this kind of issues.

[1] https://lab.llvm.org/buildbot/#/builders/127/builds/6956
---
 clang/test/Driver/serenity.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/clang/test/Driver/serenity.cpp b/clang/test/Driver/serenity.cpp
index 09b8cb90679bf..9fefaaa9b6e52 100644
--- a/clang/test/Driver/serenity.cpp
+++ b/clang/test/Driver/serenity.cpp
@@ -259,7 +259,7 @@
 // RUN: %clang --target=x86_64-unknown-serenity -flto %s -### 2>&1 \
 // RUN:   | FileCheck %s --check-prefix=LTO_FULL
 // LTO_FULL: "-plugin-opt=
-// LTO_FULL-NOT: thin
+// LTO_FULL-NOT: "-plugin-opt=thinlto"
 
 // RUN: %clang --target=x86_64-unknown-serenity -flto=thin %s -### 2>&1 \
 // RUN:   | FileCheck %s --check-prefix=LTO_THIN



More information about the cfe-commits mailing list