[all-commits] [llvm/llvm-project] 65271f: [lld][MinGW] Introduce aliases for -Bdynamic and -...

zero9178 via All-commits all-commits at lists.llvm.org
Mon May 17 13:13:50 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 65271ffe84165b935cefc9a7d468cb6f46a96a91
      https://github.com/llvm/llvm-project/commit/65271ffe84165b935cefc9a7d468cb6f46a96a91
  Author: Markus Böck <markus.boeck02 at gmail.com>
  Date:   2021-05-17 (Mon, 17 May 2021)

  Changed paths:
    M lld/MinGW/Options.td
    M lld/test/MinGW/lib.test

  Log Message:
  -----------
  [lld][MinGW] Introduce aliases for -Bdynamic and -Bstatic

Besides -Bdynamic and -Bstatic, ld documents additional aliases for both of these options. Instead of -Bstatic, one may write -dn, -non_shared or -static. Instead of -Bdynamic one may write -dy or -call_shared. Source: https://sourceware.org/binutils/docs-2.36/ld/Options.html

This patch adds those aliases to the MinGW driver of lld for the sake of ld compatibility.

Encountered this case while compiling a static Qt 6.1 distribution and got build failures as -static was passed directly to the linker, instead of through the compiler driver.

Differential Revision: https://reviews.llvm.org/D102637




More information about the All-commits mailing list