2015-10-14 20:25:43 +08:00
|
|
|
// The full path to the gold linker was not found on Windows because the
|
|
|
|
// driver fails to add an .exe extension to the name.
|
|
|
|
// We check that gold linker's full name (with an extension) is specified
|
|
|
|
// on the command line if -fuse-ld=gold, or -shared with no -fuse-ld option
|
|
|
|
// are passed. Otherwise, we check that the PS4's linker's full name is
|
|
|
|
// specified.
|
|
|
|
|
|
|
|
// REQUIRES: system-windows, x86-registered-target
|
|
|
|
|
2017-08-16 03:47:06 +08:00
|
|
|
// RUN: mkdir -p %t
|
|
|
|
// RUN: touch %t/orbis-ld.exe
|
|
|
|
// RUN: touch %t/orbis-ld.gold.exe
|
2015-10-14 20:25:43 +08:00
|
|
|
|
2017-08-16 03:47:06 +08:00
|
|
|
// RUN: env "PATH=%t;%PATH%;" %clang -target x86_64-scei-ps4 %s -fuse-ld=gold -### 2>&1 \
|
2015-10-14 20:25:43 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-PS4-GOLD %s
|
2017-08-16 03:47:06 +08:00
|
|
|
// RUN: env "PATH=%t;%PATH%;" %clang -target x86_64-scei-ps4 %s -shared -### 2>&1 \
|
2015-10-14 20:25:43 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-PS4-GOLD %s
|
|
|
|
|
2017-08-16 03:47:06 +08:00
|
|
|
// RUN: env "PATH=%t;%PATH%;" %clang -target x86_64-scei-ps4 %s -### 2>&1 \
|
2015-10-14 20:25:43 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
|
2017-08-16 03:47:06 +08:00
|
|
|
// RUN: env "PATH=%t;%PATH%;" %clang -target x86_64-scei-ps4 %s -fuse-ld=ps4 -### 2>&1 \
|
2015-10-14 20:25:43 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
|
2017-08-16 03:47:06 +08:00
|
|
|
// RUN: env "PATH=%t;%PATH%;" %clang -target x86_64-scei-ps4 %s -shared \
|
2015-10-14 20:25:43 +08:00
|
|
|
// RUN: -fuse-ld=ps4 -### 2>&1 | FileCheck --check-prefix=CHECK-PS4-LINKER %s
|
|
|
|
|
2016-06-29 08:29:23 +08:00
|
|
|
// CHECK-PS4-GOLD: \\orbis-ld.gold
|
|
|
|
// CHECK-PS4-LINKER: \\orbis-ld
|