[clang] [clang] Make serenity.cpp tests pass on clang-with-thin-lto-ubuntu (PR #192231)
via cfe-commits
cfe-commits at lists.llvm.org
Wed Apr 15 03:43:47 PDT 2026
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-clang
Author: Lucas Chollet (LucasChollet)
<details>
<summary>Changes</summary>
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
---
Full diff: https://github.com/llvm/llvm-project/pull/192231.diff
1 Files Affected:
- (modified) clang/test/Driver/serenity.cpp (+1-1)
``````````diff
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
``````````
</details>
https://github.com/llvm/llvm-project/pull/192231
More information about the cfe-commits
mailing list