brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.2 KiB · 2c7ca02 Raw
28 lines · c
1// Confirm that -flto-jobs=N is passed to linker2 3// RUN: %clang --target=x86_64-unknown-linux -### %s -flto=thin -flto-jobs=5 2> %t4// RUN: FileCheck -check-prefix=CHECK-LINK-THIN-JOBS-ACTION < %t %s5//6// RUN: %clang --target=x86_64-sie-ps5 -### %s -flto=thin -flto-jobs=5 2> %t7// RUN: FileCheck -check-prefix=CHECK-LINK-THIN-JOBS-ACTION < %t %s8//9// RUN: %clang --target=x86_64-sie-ps5 -### %s -flto-jobs=5 2> %t10// RUN: FileCheck -check-prefix=CHECK-LINK-THIN-JOBS-ACTION < %t %s11//12// CHECK-LINK-THIN-JOBS-ACTION: "-plugin-opt=jobs=5"13//14// RUN: %clang --target=x86_64-scei-ps4 -### %s -flto=thin -flto-jobs=5 2> %t15// RUN: FileCheck -check-prefix=CHECK-PS4-LINK-THIN-JOBS-ACTION < %t %s16//17// CHECK-PS4-LINK-THIN-JOBS-ACTION: "-lto-debug-options= -threads=5"18 19// RUN: %clang --target=x86_64-apple-darwin13.3.0 -### %s -flto=thin -flto-jobs=5 2> %t20// RUN: FileCheck -check-prefix=CHECK-LINK-THIN-JOBS2-ACTION < %t %s21//22// CHECK-LINK-THIN-JOBS2-ACTION: "-mllvm" "-threads={{[0-9]+}}"23 24// RUN: %clang --target=powerpc-ibm-aix -### %s -flto=thin -flto-jobs=5 2> %t25// RUN: FileCheck -check-prefix=CHECK-AIX-LINK-THIN-JOBS-ACTION < %t %s26//27// CHECK-AIX-LINK-THIN-JOBS-ACTION: "-bplugin_opt:-threads=5"28