[all-commits] [llvm/llvm-project] a41404: [lld/mac] Abort link immediately on invalid -undef...
Nico Weber via All-commits
all-commits at lists.llvm.org
Thu Dec 8 05:31:16 PST 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a414044012920059ac4bfd2756669f2fca3a4b99
https://github.com/llvm/llvm-project/commit/a414044012920059ac4bfd2756669f2fca3a4b99
Author: Nico Weber <thakis at chromium.org>
Date: 2022-12-08 (Thu, 08 Dec 2022)
Changed paths:
M lld/MachO/Driver.cpp
M lld/test/MachO/treat-undef-sym.s
Log Message:
-----------
[lld/mac] Abort link immediately on invalid -undefined argument
I tried `-undefined suppress` without `-flat_namespace`.
lld printed `'-undefined suppress' only valid with '-flat_namespace'`
followed by many many screenfuls of error messages about undefined
symbols, making the original diag hard to see.
This is probably the common case when using `-undefined`, so let's
just abort the link immediately when there's an invalid `-undefined`
arg.
Differential Revision: https://reviews.llvm.org/D139559
More information about the All-commits
mailing list