This allows using --ld-path= to set a custom linker path, while still informing clang that the binary at that path is an lld built at the same revision as clang, so that clang can make assumptions about the flags it supports, its output format, etc. This currently only has an observable effect on Darwin. Differential Revision: https://reviews.llvm.org/D134063
13 lines
423 B
C
13 lines
423 B
C
// With -fuse-ld=lld, -demangle is always passed to the linker on Darwin.
|
|
// REQUIRES: shell
|
|
|
|
// RUN: %clang --target=x86_64-apple-darwin -### -fuse-ld=lld \
|
|
// RUN: -B%S/Inputs/lld -mlinker-version=0 %s 2>&1 \
|
|
// RUN: | FileCheck %s
|
|
|
|
// RUN: %clang --target=x86_64-apple-darwin -### -fuse-ld=lld \
|
|
// RUN: --ld-path=%S/Inputs/lld/ld64.lld -mlinker-version=0 %s 2>&1 \
|
|
// RUN: | FileCheck %s
|
|
|
|
// CHECK: "-demangle"
|