3 // Check that lld gets "-lto_library".
4 // (Separate test file since darwin-ld-lto requires system-darwin but this
5 // test doesn't require that.)
7 // Check that -object_lto_path is passed correctly to ld64
8 // RUN: %clang -fuse-ld=lld -B%S/Inputs/lld --target=x86_64-apple-darwin10 \
9 // RUN: %s -flto=full -### 2>&1 \
10 // RUN: | FileCheck -check-prefix=FULL_LTO_OBJECT_PATH %s
11 // FULL_LTO_OBJECT_PATH: {{ld(.exe)?"}}
12 // FULL_LTO_OBJECT_PATH-SAME: "-object_path_lto"
13 // FULL_LTO_OBJECT_PATH-SAME: {{cc\-[a-zA-Z0-9_]+.o}}"
14 // RUN: %clang -fuse-ld=lld -B%S/Inputs/lld --target=x86_64-apple-darwin10 \
15 // RUN: %s -flto=thin -### 2>&1 \
16 // RUN: | FileCheck -check-prefix=THIN_LTO_OBJECT_PATH %s
17 // THIN_LTO_OBJECT_PATH: {{ld(.exe)?"}}
18 // THIN_LTO_OBJECT_PATH-SAME: "-object_path_lto"
19 // THIN_LTO_OBJECT_PATH-SAME: {{thinlto\-[a-zA-Z0-9_]+}}