https://github.com/mustartt created 
https://github.com/llvm/llvm-project/pull/213799

`cuda-omp-unsupported-debug-options.cu`'s COMMON-NOT: ...|lldb|... can match 
against the build directory path that may contain `lldb` in the pathname. 
Change the test to check the exact cc1 arguments.

>From e6b38ff0a93cf448db64daa46a259758cba86bec Mon Sep 17 00:00:00 2001
From: Henry Jiang <[email protected]>
Date: Mon, 3 Aug 2026 16:49:32 -0700
Subject: [PATCH] [NFC][Cuda] Fix CHECK-NOT patterns matching the build
 directory

---
 clang/test/Driver/cuda-omp-unsupported-debug-options.cu | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/clang/test/Driver/cuda-omp-unsupported-debug-options.cu 
b/clang/test/Driver/cuda-omp-unsupported-debug-options.cu
index cc6a538d7a7ba..9983cbcd51f8e 100644
--- a/clang/test/Driver/cuda-omp-unsupported-debug-options.cu
+++ b/clang/test/Driver/cuda-omp-unsupported-debug-options.cu
@@ -57,6 +57,6 @@
 // WARN-GES-SAME: requires DWARF-5 but target 'nvptx64-nvidia-cuda' only 
provides DWARF-2 [-Wunsupported-target-opt]
 // COMMON-NOT: debug information option '{{.*}}' is not supported for target 
'x86
 // COMMON: "-triple" "nvptx64-nvidia-cuda"
-// COMMON-NOT: 
{{-compress-debug|-fdebug-info-for-profiling|lldb|codeview|module-format|embed-source|debug-info-macro|gnu-pubnames|generate-arange-section|generate-type-units}}
+// COMMON-NOT: 
{{"--compress-debug-sections=|"-fdebug-info-for-profiling"|"-debugger-tuning=lldb"|"-gcodeview"|"-fmodule-format=|"-gembed-source"|"-debug-info-macro"|"-ggnu-pubnames"|"-generate-arange-section"|"-generate-type-units"}}
 // COMMON: "-triple" "x86_64
-// COMMON-SAME: 
{{-compress-debug|-fdebug-info-for-profiling|split-dwarf|lldb|codeview|module-format|embed-source|debug-info-macro|gnu-pubnames|generate-arange-section|generate-type-units}}
+// COMMON-SAME: 
{{"--compress-debug-sections=|"-fdebug-info-for-profiling"|"-split-dwarf-|"-debugger-tuning=lldb"|"-gcodeview"|"-fmodule-format=|"-gembed-source"|"-debug-info-macro"|"-ggnu-pubnames"|"-generate-arange-section"|"-generate-type-units"}}

_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to