[PATCH] D52931: [LLD] [COFF] Don't warn about both main and wmain in MinGW configurations

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 5 10:10:55 PDT 2018


ruiu added a comment.

This function is called only when you did not pass `/entry:`.

If MinGW uses only mainCRTStartup or WinMainCRTStartup, can you determine which is the case just by looking at a command line? If so, I'd always explicitly pass `/entry:` to the lld-link driver from the mingw driver.


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D52931





More information about the llvm-commits mailing list