From: Joerg Sonnenberger Date: Mon, 6 Jun 2016 13:13:12 +0000 (+0000) Subject: Give FileCheck a hint on which ld to match. Under Windows, the preferred X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1391e6f4bd9b89c428e3babf16531a468036005b;p=clang Give FileCheck a hint on which ld to match. Under Windows, the preferred match was the ld.elf_so that should be matched in a second step. Add one of the ever-present-but-irrelevant-for-this-test arguments to the pattern to force matching the right argument. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@271893 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Driver/netbsd.c b/test/Driver/netbsd.c index 34757b5a49..1a87d8e1a6 100644 --- a/test/Driver/netbsd.c +++ b/test/Driver/netbsd.c @@ -115,7 +115,7 @@ // RUN: --sysroot=%S/Inputs/basic_netbsd_tree %s -### 2>&1 \ // RUN: | FileCheck -check-prefix=S-POWERPC64 %s -// STATIC: ld{{.*}}" +// STATIC: ld{{.*}}" "--eh-frame-hdr" // STATIC-NOT: "-pie" // STATIC-NOT: "-Bshareable" // STATIC: "-dynamic-linker" "/libexec/ld.elf_so" @@ -125,14 +125,14 @@ // STATIC: "{{.*}}/usr/lib{{/|\\\\}}crti.o" "{{.*}}/usr/lib{{/|\\\\}}crtbegin.o" // STATIC: "{{.*}}/usr/lib{{/|\\\\}}crtend.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o" -// SHARED: ld{{.*}}" +// SHARED: ld{{.*}}" "--eh-frame-hdr" // SHARED-NOT: "-pie" // SHARED-NOT: "-dynamic-linker" // SHARED-NOT: "{{.*}}/usr/lib{{/|\\\\}}crt0.o" // SHARED: "{{.*}}/usr/lib{{/|\\\\}}crti.o" "{{.*}}/usr/lib{{/|\\\\}}crtbeginS.o" // SHARED: "{{.*}}/usr/lib{{/|\\\\}}crtendS.o" "{{.*}}/usr/lib{{/|\\\\}}crtn.o" -// PIE: ld{{.*}}" +// PIE: ld{{.*}}" "--eh-frame-hdr" // PIE-NOT: "-Bshareable" // PIE "-pie" "-dynamic-linker" "/libexec/ld.elf_so" // PIE-NOT: "-Bshareable"