Skip to content

Commit 3493c19

Browse files
committed
[lld] Disable ability to link Mach-O for Darwin platforms (but not non-Darwin firmware) in Swift LLVM fork
1 parent 4aa2cfd commit 3493c19

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lld/MachO/InputFiles.cpp

+5
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ static bool checkCompatibility(const InputFile *input) {
157157
if (platformInfos.empty())
158158
return true;
159159

160+
// Swift LLVM fork downstream change start
161+
error("This version of lld does not support linking for platform " + getPlatformName(platformInfos.front().target.Platform));
162+
return false;
163+
// Swift LLVM fork downstream change end
164+
160165
auto it = find_if(platformInfos, [&](const PlatformInfo &info) {
161166
return removeSimulator(info.target.Platform) ==
162167
removeSimulator(config->platform());

0 commit comments

Comments
 (0)