[clang] e272c37 - clang; Try to get windows-seh-async-verify.cpp to pass on mac

Nico Weber via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 16 05:33:33 PDT 2024


Author: Nico Weber
Date: 2024-04-16T08:33:25-04:00
New Revision: e272c37934a06cd80b9b072afc09afae5fd8c218

URL: https://github.com/llvm/llvm-project/commit/e272c37934a06cd80b9b072afc09afae5fd8c218
DIFF: https://github.com/llvm/llvm-project/commit/e272c37934a06cd80b9b072afc09afae5fd8c218.diff

LOG: clang; Try to get windows-seh-async-verify.cpp to pass on mac

On macOS, file paths start with /Users/..., which clang-cl interptrets
as the /U switch followed by a preprocessor macro name to undefine.

Put the filename after `--` to prevent this. For consistency, move %s
to the end of the regular `clang` lines (where this isn't needed) as
well.

Added: 
    

Modified: 
    clang/test/Driver/windows-seh-async-verify.cpp

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/windows-seh-async-verify.cpp b/clang/test/Driver/windows-seh-async-verify.cpp
index 5fda6a77dba049..ace93cf44a31d2 100644
--- a/clang/test/Driver/windows-seh-async-verify.cpp
+++ b/clang/test/Driver/windows-seh-async-verify.cpp
@@ -1,7 +1,7 @@
-// RUN: %clang --target=x86_64-pc-windows -fasync-exceptions -fsyntax-only %s -### 2>&1 | FileCheck %s
-// RUN: %clang_cl --target=x86_64-pc-windows /EHa -fsyntax-only %s -### 2>&1 | FileCheck %s
-// RUN: %clang --target=x86_64-pc-windows-gnu -fasync-exceptions -fsyntax-only %s -### 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,GNU
-// RUN: %clang_cl --target=x86_64-pc-windows-gnu /EHa -fsyntax-only %s -### 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,CL-GNU
+// RUN: %clang --target=x86_64-pc-windows -fasync-exceptions -fsyntax-only -### %s 2>&1 | FileCheck %s
+// RUN: %clang_cl --target=x86_64-pc-windows /EHa -fsyntax-only -### -- %s 2>&1 | FileCheck %s
+// RUN: %clang --target=x86_64-pc-windows-gnu -fasync-exceptions -fsyntax-only -### %s 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,GNU
+// RUN: %clang_cl --target=x86_64-pc-windows-gnu /EHa -fsyntax-only -### -- %s 2>&1 | FileCheck %s --check-prefixes=GNU-ALL,CL-GNU
 
 // CHECK-NOT: warning
 // GNU: warning: argument unused during compilation: '-fasync-exceptions' [-Wunused-command-line-argument]


        


More information about the cfe-commits mailing list