@@ -43,7 +43,7 @@ int bar() { return weak; }
4343// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
4444// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
4545// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run \
46- // RUN: --linker-path=/usr/bin/ld -- %t.o %t.a -o a.out 2>&1 \
46+ // RUN: --linker-path=/usr/bin/ld %t.o %t.a -o a.out 2>&1 \
4747// RUN: | FileCheck %s --check-prefix=LIBRARY-RESOLVES
4848
4949// LIBRARY-RESOLVES: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
@@ -65,7 +65,7 @@ int bar() { return weak; }
6565// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
6666// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
6767// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run \
68- // RUN: --linker-path=/usr/bin/ld -- %t.o %t.a -o a.out 2>&1 \
68+ // RUN: --linker-path=/usr/bin/ld %t.o %t.a -o a.out 2>&1 \
6969// RUN: | FileCheck %s --check-prefix=LIBRARY-GLOBAL
7070
7171// LIBRARY-GLOBAL: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
@@ -88,7 +88,7 @@ int bar() { return weak; }
8888// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
8989// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
9090// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run \
91- // RUN: --linker-path=/usr/bin/ld -- %t.o %t.a -o a.out 2>&1 \
91+ // RUN: --linker-path=/usr/bin/ld %t.o %t.a -o a.out 2>&1 \
9292// RUN: | FileCheck %s --check-prefix=LIBRARY-GLOBAL-NONE
9393
9494// LIBRARY-GLOBAL-NONE-NOT: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
@@ -109,7 +109,7 @@ int bar() { return weak; }
109109// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
110110// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
111111// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run \
112- // RUN: --linker-path=/usr/bin/ld -- %t.o %t.a -o a.out 2>&1 \
112+ // RUN: --linker-path=/usr/bin/ld %t.o %t.a -o a.out 2>&1 \
113113// RUN: | FileCheck %s --check-prefix=LIBRARY-WEAK
114114
115115// LIBRARY-WEAK: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030
@@ -131,7 +131,7 @@ int bar() { return weak; }
131131// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
132132// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
133133// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run \
134- // RUN: --linker-path=/usr/bin/ld -- %t.o %t.a -o a.out 2>&1 \
134+ // RUN: --linker-path=/usr/bin/ld %t.o %t.a -o a.out 2>&1 \
135135// RUN: | FileCheck %s --check-prefix=LIBRARY-HIDDEN
136136
137137// LIBRARY-HIDDEN: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030
@@ -154,7 +154,7 @@ int bar() { return weak; }
154154// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
155155// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
156156// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run \
157- // RUN: --linker-path=/usr/bin/ld -- %t.o %t.a %t.a -o a.out 2>&1 \
157+ // RUN: --linker-path=/usr/bin/ld %t.o %t.a %t.a -o a.out 2>&1 \
158158// RUN: | FileCheck %s --check-prefix=LIBRARY-GLOBAL-DEFINED
159159
160160// LIBRARY-GLOBAL-DEFINED: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
@@ -178,7 +178,7 @@ int bar() { return weak; }
178178// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
179179// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
180180// RUN: clang-linker-wrapper --host-triple=x86_64-unknown-linux-gnu --dry-run \
181- // RUN: --linker-path=/usr/bin/ld -- %t.o --whole-archive %t.a -o a.out 2>&1 \
181+ // RUN: --linker-path=/usr/bin/ld %t.o --whole-archive %t.a -o a.out 2>&1 \
182182// RUN: | FileCheck %s --check-prefix=LIBRARY-WHOLE-ARCHIVE
183183
184184// LIBRARY-WHOLE-ARCHIVE: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
0 commit comments