llvmorg-github-actions[bot] wrote:

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Akira Hatanaka (ahatanak)

<details>
<summary>Changes</summary>

The RUN lines added in 3b100666a70f did a real compile for 
arm64-apple-macosx11, which fails on builders that don't register the AArch64 
backend (e.g. llvm-clang-x86_64-sie-ubuntu-fast). The NoArgumentUnused behavior 
under test is driver-side, so switch to -### and avoid the backend dependency.

---
Full diff: https://github.com/llvm/llvm-project/pull/201877.diff


1 Files Affected:

- (modified) clang/test/Driver/objc-constant-literals.m (+6-6) 


``````````diff
diff --git a/clang/test/Driver/objc-constant-literals.m 
b/clang/test/Driver/objc-constant-literals.m
index aec39918d5feb..e926a67d45dc8 100644
--- a/clang/test/Driver/objc-constant-literals.m
+++ b/clang/test/Driver/objc-constant-literals.m
@@ -24,15 +24,15 @@
 // pass them uniformly to non-ObjC inputs (e.g. assembly files via a shared
 // response file); they carry NoArgumentUnused so they don't trigger
 // -Wunused-command-line-argument under -Werror.
-// RUN: %clang -target arm64-apple-macosx11 -Werror \
+// RUN: %clang -### -target arm64-apple-macosx11 -Werror \
 // RUN:   -fobjc-constant-literals -fconstant-nsnumber-literals \
 // RUN:   -fconstant-nsarray-literals -fconstant-nsdictionary-literals \
-// RUN:   -x assembler -c %s -o /dev/null 2>&1 \
+// RUN:   -x assembler -c %s 2>&1 \
 // RUN:   | FileCheck %s --check-prefix=IGNORED --allow-empty
-// RUN: %clang -target arm64-apple-macosx11 -Werror \
+// RUN: %clang -### -target arm64-apple-macosx11 -Werror \
 // RUN:   -fno-objc-constant-literals -fno-constant-nsnumber-literals \
 // RUN:   -fno-constant-nsarray-literals -fno-constant-nsdictionary-literals \
-// RUN:   -x assembler -c %s -o /dev/null 2>&1 \
+// RUN:   -x assembler -c %s 2>&1 \
 // RUN:   | FileCheck %s --check-prefix=IGNORED --allow-empty
 
 // IGNORED-NOT: argument unused during compilation
@@ -43,8 +43,8 @@
 
 // The same flags must also be ignored (and not forwarded to cc1) when 
compiling
 // non-ObjC C/C++ inputs.
-// RUN: %clang -target arm64-apple-macosx11 -Werror \
+// RUN: %clang -### -target arm64-apple-macosx11 -Werror \
 // RUN:   -fobjc-constant-literals -fconstant-nsnumber-literals \
 // RUN:   -fconstant-nsarray-literals -fconstant-nsdictionary-literals \
-// RUN:   -x c++ -c %s -o /dev/null 2>&1 \
+// RUN:   -x c++ -c %s 2>&1 \
 // RUN:   | FileCheck %s --check-prefix=IGNORED --allow-empty

``````````

</details>


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

Reply via email to