Skip to content

Commit 922de25

Browse files
committed
[lld-macho] Partial revert of D95204
Trying to unbreak https://lab.llvm.org/buildbot/#/builders/57/builds/4753 I'm not able to repro the failures locally so... here's hoping
1 parent 015d78a commit 922de25

File tree

7 files changed

+16
-17
lines changed

7 files changed

+16
-17
lines changed

clang/lib/Driver/ToolChain.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -620,11 +620,11 @@ std::string ToolChain::GetLinkerPath(bool *LinkerIsLLD,
620620

621621
std::string LinkerPath(GetProgramPath(LinkerName.c_str()));
622622
if (llvm::sys::fs::can_execute(LinkerPath)) {
623-
// FIXME: Remove LinkerIsLLDDarwinNew once there's only one MachO lld.
623+
// FIXME: Remove lld.darwinnew here once it's the only MachO lld.
624624
if (LinkerIsLLD)
625-
*LinkerIsLLD = UseLinker == "lld" || UseLinker == "lld.darwinold";
625+
*LinkerIsLLD = UseLinker == "lld" || UseLinker == "lld.darwinnew";
626626
if (LinkerIsLLDDarwinNew)
627-
*LinkerIsLLDDarwinNew = UseLinker == "lld";
627+
*LinkerIsLLDDarwinNew = UseLinker == "lld.darwinnew";
628628
return LinkerPath;
629629
}
630630
}
Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
// With -fuse-ld=lld, -demangle is always passed to the linker on Darwin.
22
// REQUIRES: shell
33

4-
// FIXME: Remove this test case when we remove the lld.darwinold backend.
54
// RUN: %clang --target=x86_64-apple-darwin -### \
6-
// RUN: -fuse-ld=lld.darwinold -B%S/Inputs/lld -mlinker-version=0 %s 2>&1 \
5+
// RUN: -fuse-ld=lld -B%S/Inputs/lld -mlinker-version=0 %s 2>&1 \
76
// RUN: | FileCheck %s
8-
7+
// FIXME: Remove ld.darwinnew once it's the default (and only) mach-o lld.
98
// RUN: %clang --target=x86_64-apple-darwin -### \
10-
// RUN: -fuse-ld=lld -B%S/Inputs/lld -mlinker-version=0 %s 2>&1 \
9+
// RUN: -fuse-ld=lld.darwinnew -B%S/Inputs/lld -mlinker-version=0 %s 2>&1 \
1110
// RUN: | FileCheck %s
1211

1312
// CHECK: "-demangle"

clang/test/Driver/darwin-ld-platform-version-ios.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// RUN: touch %t.o
22

3-
// RUN: %clang -target arm64-apple-ios12.3 -fuse-ld=lld.darwinold \
3+
// RUN: %clang -target arm64-apple-ios12.3 -fuse-ld= \
44
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
55
// RUN: -### %t.o 2>&1 \
66
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
@@ -12,15 +12,15 @@
1212
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=520 \
1313
// RUN: -### %t.o 2>&1 \
1414
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
15-
// RUN: %clang -target arm64-apple-ios12.3 -fuse-ld=lld \
15+
// RUN: %clang -target arm64-apple-ios12.3 -fuse-ld=lld.darwinnew \
1616
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
1717
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
1818
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
1919
// RUN: %clang -target x86_64-apple-ios13-simulator -fuse-ld= \
2020
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=520 \
2121
// RUN: -### %t.o 2>&1 \
2222
// RUN: | FileCheck --check-prefix=SIMUL %s
23-
// RUN: %clang -target x86_64-apple-ios13-simulator -fuse-ld=lld \
23+
// RUN: %clang -target x86_64-apple-ios13-simulator -fuse-ld=lld.darwinnew \
2424
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
2525
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
2626
// RUN: | FileCheck --check-prefix=SIMUL %s

clang/test/Driver/darwin-ld-platform-version-macos.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
// RUN: touch %t.o
22

3-
// RUN: %clang -target x86_64-apple-macos10.13 -fuse-ld=lld.darwinold \
3+
// RUN: %clang -target x86_64-apple-macos10.13 -fuse-ld= \
44
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=0 \
55
// RUN: -### %t.o 2>&1 \
66
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
7-
// RUN: %clang -target x86_64-apple-macos10.13 -fuse-ld=lld \
7+
// RUN: %clang -target x86_64-apple-macos10.13 -fuse-ld=lld.darwinnew \
88
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=0 \
99
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
1010
// RUN: | FileCheck --check-prefix=LINKER-NEW %s
@@ -21,7 +21,7 @@
2121
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 \
2222
// RUN: -### %t.o 2>&1 \
2323
// RUN: | FileCheck --check-prefix=ARM64_OLD %s
24-
// RUN: %clang -target arm64-apple-macos10.13 -fuse-ld=lld \
24+
// RUN: %clang -target arm64-apple-macos10.13 -fuse-ld=lld.darwinnew \
2525
// RUN: -isysroot %S/Inputs/MacOSX10.14.sdk -mlinker-version=400 \
2626
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
2727
// RUN: | FileCheck --check-prefix=ARM64_NEW %s

clang/test/Driver/darwin-ld-platform-version-tvos.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: touch %t.o
22

3-
// RUN: %clang -target arm64-apple-tvos12.3 -fuse-ld=lld.darwinold \
3+
// RUN: %clang -target arm64-apple-tvos12.3 -fuse-ld= \
44
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
55
// RUN: -### %t.o 2>&1 \
66
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
77
// RUN: %clang -target arm64-apple-tvos12.3 -fuse-ld= \
88
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=400 \
99
// RUN: -### %t.o 2>&1 \
1010
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
11-
// RUN: %clang -target arm64-apple-tvos12.3 -fuse-ld=lld \
11+
// RUN: %clang -target arm64-apple-tvos12.3 -fuse-ld=lld.darwinnew \
1212
// RUN: -isysroot %S/Inputs/iPhoneOS13.0.sdk -mlinker-version=0 \
1313
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
1414
// RUN: | FileCheck --check-prefix=LINKER-NEW %s

clang/test/Driver/darwin-ld-platform-version-watchos.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
// RUN: touch %t.o
22

3-
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld=lld.darwinold \
3+
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \
44
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \
55
// RUN: -### %t.o 2>&1 \
66
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
77
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld= \
88
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=400 \
99
// RUN: -### %t.o 2>&1 \
1010
// RUN: | FileCheck --check-prefix=LINKER-OLD %s
11-
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld=lld \
11+
// RUN: %clang -target arm64_32-apple-watchos5.2 -fuse-ld=lld.darwinnew \
1212
// RUN: -isysroot %S/Inputs/WatchOS6.0.sdk -mlinker-version=0 \
1313
// RUN: -### %t.o -B%S/Inputs/lld 2>&1 \
1414
// RUN: | FileCheck --check-prefix=LINKER-NEW %s

0 commit comments

Comments
 (0)