[llvm-bugs] [Bug 33805] New: cmake: initial linker detection ignores -DLLVM_USE_LINKER and prints gold is used

via llvm-bugs llvm-bugs at lists.llvm.org
Sat Jul 15 14:26:55 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=33805

            Bug ID: 33805
           Summary: cmake: initial linker detection ignores
                    -DLLVM_USE_LINKER and prints gold is used
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedbugs at nondot.org
          Reporter: matthias.krueger at famsik.de
                CC: llvm-bugs at lists.llvm.org

To repro:

git clone https://github.com/llvm-mirror/llvm --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: https://llvm.org/svn/llvm-project/llvm/trunk@308109
91177308-0d34-0410-b5e6-96231b3b80d8

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170715/e52cb837/attachment.html>


More information about the llvm-bugs mailing list