| 1 |
// Test the driver's control over the JustMyCode behavior with linker flags. |
| 2 |
|
| 3 |
// RUN: %clang --target=x86_64-scei-ps5 -fjmc %s -### 2>&1 | FileCheck --check-prefixes=CHECK,CHECK-LIB %s |
| 4 |
// RUN: %clang --target=x86_64-scei-ps5 -flto -fjmc %s -### 2>&1 | FileCheck --check-prefixes=CHECK-LTO,CHECK-LIB %s |
| 5 |
|
| 6 |
// CHECK-NOT: -plugin-opt=-enable-jmc-instrument |
| 7 |
// CHECK-LTO: -plugin-opt=-enable-jmc-instrument |
| 8 |
|
| 9 |
// Check the default library name. |
| 10 |
// CHECK-LIB: "--whole-archive" "-lSceJmc_nosubmission" "--no-whole-archive" |
| 11 |
|
| 12 |
// Test the driver's control over the -fcrash-diagnostics-dir behavior with linker flags. |
| 13 |
|
| 14 |
// RUN: %clang --target=x86_64-scei-ps5 -fcrash-diagnostics-dir=mydumps %s -### 2>&1 | FileCheck --check-prefixes=CHECK-DIAG %s |
| 15 |
// RUN: %clang --target=x86_64-scei-ps5 -flto -fcrash-diagnostics-dir=mydumps %s -### 2>&1 | FileCheck --check-prefixes=CHECK-DIAG-LTO %s |
| 16 |
|
| 17 |
// CHECK-DIAG-NOT: -plugin-opt=-crash-diagnostics-dir=mydumps |
| 18 |
// CHECK-DIAG-LTO: -plugin-opt=-crash-diagnostics-dir=mydumps |