Files
clang-p2996/clang/test/Driver/darwin-ld-demangle-lld.c
Nico Weber 31142c4290 [clang] Make --ld-path= work with -fuse-ld=lld
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
2022-09-23 09:04:19 -04:00

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"