[clang] caff17e - [Driver] Don't use capture for InstalledDir

Petr Hosek via cfe-commits cfe-commits at lists.llvm.org
Tue Apr 20 13:44:20 PDT 2021


Author: Petr Hosek
Date: 2021-04-20T13:43:56-07:00
New Revision: caff17e503fe81d69e90dd69b14f5149659f9db4

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

LOG: [Driver] Don't use capture for InstalledDir

This is another attempt to address the issue introduced in
ae8b2cab67408a043a4fe964d16e4803553c4ee0.

We cannot capture InstalledDir because FileCheck doesn't handle
the backslashes correctly, so instead we just consume the entire
path prefix which is what other tests are doing.

Added: 
    

Modified: 
    clang/test/Driver/darwin-ld.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Driver/darwin-ld.c b/clang/test/Driver/darwin-ld.c
index 7c782e1cb5bf..9fe68f1821c9 100644
--- a/clang/test/Driver/darwin-ld.c
+++ b/clang/test/Driver/darwin-ld.c
@@ -368,5 +368,4 @@
 
 // RUN: %clang -target x86_64-apple-darwin10 -### %t.o 2> %t.log
 // RUN: FileCheck -check-prefix=INSTALL-DIR %s < %t.log
-// INSTALL-DIR: InstalledDir: [[INSTALLDIR:.+$]]
-// INSTALL-DIR: "-L[[INSTALLDIR]]{{/|\\\\}}..{{/|\\\\}}lib"
+// INSTALL-DIR: "-L{{.*}}{{/|\\\\}}..{{/|\\\\}}lib"


        


More information about the cfe-commits mailing list