@@ -43,7 +43,7 @@ int bar() { return weak; }
43
43
// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
44
44
// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
45
45
// 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 \
47
47
// RUN: | FileCheck %s --check-prefix=LIBRARY-RESOLVES
48
48
49
49
// LIBRARY-RESOLVES: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
@@ -65,7 +65,7 @@ int bar() { return weak; }
65
65
// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
66
66
// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
67
67
// 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 \
69
69
// RUN: | FileCheck %s --check-prefix=LIBRARY-GLOBAL
70
70
71
71
// LIBRARY-GLOBAL: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
@@ -88,7 +88,7 @@ int bar() { return weak; }
88
88
// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
89
89
// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
90
90
// 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 \
92
92
// RUN: | FileCheck %s --check-prefix=LIBRARY-GLOBAL-NONE
93
93
94
94
// LIBRARY-GLOBAL-NONE-NOT: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
@@ -109,7 +109,7 @@ int bar() { return weak; }
109
109
// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
110
110
// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
111
111
// 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 \
113
113
// RUN: | FileCheck %s --check-prefix=LIBRARY-WEAK
114
114
115
115
// LIBRARY-WEAK: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030
@@ -131,7 +131,7 @@ int bar() { return weak; }
131
131
// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
132
132
// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
133
133
// 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 \
135
135
// RUN: | FileCheck %s --check-prefix=LIBRARY-HIDDEN
136
136
137
137
// LIBRARY-HIDDEN: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030
@@ -154,7 +154,7 @@ int bar() { return weak; }
154
154
// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
155
155
// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
156
156
// 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 \
158
158
// RUN: | FileCheck %s --check-prefix=LIBRARY-GLOBAL-DEFINED
159
159
160
160
// LIBRARY-GLOBAL-DEFINED: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
@@ -178,7 +178,7 @@ int bar() { return weak; }
178
178
// RUN: --image=file=%t.elf.o,kind=openmp,triple=amdgcn-amd-amdhsa,arch=gfx1030
179
179
// RUN: %clang -cc1 %s -triple x86_64-unknown-linux-gnu -emit-obj -o %t.o -fembed-offload-object=%t.out
180
180
// 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 \
182
182
// RUN: | FileCheck %s --check-prefix=LIBRARY-WHOLE-ARCHIVE
183
183
184
184
// LIBRARY-WHOLE-ARCHIVE: clang{{.*}} -o {{.*}}.img --target=amdgcn-amd-amdhsa -mcpu=gfx1030 {{.*}}.o {{.*}}.o
0 commit comments