<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - cmake: initial linker detection ignores -DLLVM_USE_LINKER and prints gold is used"
   href="https://bugs.llvm.org/show_bug.cgi?id=33805">33805</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>cmake: initial linker detection ignores -DLLVM_USE_LINKER and prints gold is used
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>new-bugs
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>trunk
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>new bugs
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>unassignedbugs@nondot.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>matthias.krueger@famsik.de
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>To repro:

git clone <a href="https://github.com/llvm-mirror/llvm">https://github.com/llvm-mirror/llvm</a> --depth=1
mkdir build
cd build
cmake ../llvm -DLLVM_USE_LINKER=/path/to/lld.ld

So I explicitly told cmake to use lld, yet it prints
-- Linker detection: GNU Gold
which is quite confusing because in the end it actually uses the specified lld
instead of ld with gold plugin.


The cmake output should reflect that we passed LLVM_USE_LINKER in my opinion.

llvm @ c877b6eac83913c02cd98d3086e85119d18099e7 / 
git-svn-id: <a href="https://llvm.org/svn/llvm-project/llvm/trunk@308109">https://llvm.org/svn/llvm-project/llvm/trunk@308109</a>
91177308-0d34-0410-b5e6-96231b3b80d8</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>