[clang] [clang][driver] Don't warn when -S and -c are used together without -fsyntax-only (PR #104477)

Paul Kirth via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 15 10:54:22 PDT 2024


================
@@ -1,7 +1,14 @@
 // RUN: %clang --target=x86_64 -fsyntax-only -E %s 2>&1 | FileCheck %s --check-prefix=CHECK-PP
 // RUN: %clang --target=x86_64 -fsyntax-only -S %s 2>&1 | FileCheck %s --check-prefix=CHECK-ASM
 // RUN: %clang --target=x86_64 -fsyntax-only -c %s 2>&1 | FileCheck %s --check-prefix=CHECK-OBJ
+// RUN: %clang --target=x86_64 -fsyntax-only -S -c %s 2>&1 | FileCheck %s --check-prefixes=CHECK-ASM,CHECK-OBJ
----------------
ilovepi wrote:

Do these need the target set? Seems like this should be fine for any target, right?

https://github.com/llvm/llvm-project/pull/104477


More information about the cfe-commits mailing list