[lld] [LLD] [MinGW] Interpret an empty -entry option as no entry point (PR #96055)
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 19 05:59:42 PDT 2024
mstorsjo wrote:
> > > as long as you drive the linking via GCC/Clang, it always passes one `-e` option or another, so it practically never will hit that case anyway
> >
> >
> > Does it...? When I run `clang++.exe -### -x c++ -` I don't see any entry point flags in the `ld.lld` invocation.
>
> Oh, you're absolutely right, it isn't - I clearly misremembered, and didn't check correctly.
>
> Indeed, we shouldn't be touching this aspect of it - the default behaviour in GNU ld is also more nuanced than this.
Pushed an update to remove this part of the change now.
https://github.com/llvm/llvm-project/pull/96055
More information about the llvm-commits
mailing list