Debian Codegraph @

clang/test/Driver/darwin-ld-lto-lld.c

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