[clang] b40a5be - [Driver][test] Don't check the version in the triple

Fangrui Song via cfe-commits cfe-commits at lists.llvm.org
Mon Sep 11 10:17:13 PDT 2023


Author: Fangrui Song
Date: 2023-09-11T10:17:08-07:00
New Revision: b40a5bead2cb95c90ecd8c0fa566722e6133e01c

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

LOG: [Driver][test] Don't check the version in the triple

On a macOS host the version may be different.

Fix: 9f77facfce3ca23213c1de2e3e4c969b5187e29d

Added: 
    

Modified: 
    clang/test/Driver/unsupported-target-arch.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/unsupported-target-arch.c b/clang/test/Driver/unsupported-target-arch.c
index ce1d99007f1a008..8df0ee9fe7d06f1 100644
--- a/clang/test/Driver/unsupported-target-arch.c
+++ b/clang/test/Driver/unsupported-target-arch.c
@@ -62,4 +62,4 @@
 
 // RUN: not %clang --target=powerpc-apple-darwin -o /dev/null %s 2> %t.err
 // RUN: FileCheck --input-file=%t.err --check-prefix=CHECK-PPCMAC %s
-// CHECK-PPCMAC: error: unknown target triple 'unknown-apple-macosx10.4.0'{{$}}
+// CHECK-PPCMAC: error: unknown target triple 'unknown-apple-macosx{{.*}}'


        


More information about the cfe-commits mailing list