2020-06-17 04:50:41 +08:00
|
|
|
// This test check that orbis-ld is used for linker all the time. Specifying
|
|
|
|
// linker using -fuse-ld causes a error message emitted and compilation fail.
|
2015-10-14 20:25:43 +08:00
|
|
|
|
|
|
|
// REQUIRES: system-windows, x86-registered-target
|
|
|
|
|
2017-08-16 03:47:06 +08:00
|
|
|
// RUN: mkdir -p %t
|
|
|
|
// RUN: touch %t/orbis-ld.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 -### 2>&1 \
|
2015-10-14 20:25:43 +08:00
|
|
|
// RUN: | FileCheck --check-prefix=CHECK-PS4-LINKER %s
|
2020-06-17 04:50:41 +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-LINKER %s
|
|
|
|
|
2016-06-29 08:29:23 +08:00
|
|
|
// CHECK-PS4-LINKER: \\orbis-ld
|
2020-06-17 04:50:41 +08:00
|
|
|
|
|
|
|
// RUN: env "PATH=%t;%PATH%;" %clang -target x86_64-scei-ps4 %s -fuse-ld=gold -### 2>&1 \
|
|
|
|
// RUN: | FileCheck --check-prefix=ERROR %s
|
|
|
|
|
|
|
|
// ERROR: error: unsupported option '-fuse-ld' for target 'x86_64-scei-ps4'
|