<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 - Option /MANIFESTDEPENDENCY works only with single entry"
   href="https://bugs.llvm.org/show_bug.cgi?id=45796">45796</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Option /MANIFESTDEPENDENCY works only with single entry
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>lld
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

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

        <tr>
          <th>OS</th>
          <td>Windows NT
          </td>
        </tr>

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

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

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

        <tr>
          <th>Component</th>
          <td>COFF
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>pogorelsky.work@gmail.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>In microsoft docs we can see that /MANIFESTDEPENDENCY option can have several
entries
(<a href="https://docs.microsoft.com/en-us/cpp/build/reference/manifestdependency-specify-manifest-dependencies?view=vs-2019">https://docs.microsoft.com/en-us/cpp/build/reference/manifestdependency-specify-manifest-dependencies?view=vs-2019</a>):
"The linker will collect /MANIFESTDEPENDENCY comments, eliminate duplicate
entries, and then add the resulting XML string to the manifest file. If the
linker finds conflicting entries, the manifest file will become corrupt and the
application will fail to launch (an entry may be added to the event log,
indicating the source of the failure)."

I tried to set two /MANIFESTDEPENDENCY simultaneously, but it seems like
lld-linker handles only single entry of this option
("args.getLastArg(OPT_manifestdependency)",
<a href="https://github.com/llvm/llvm-project/blob/master/lld/COFF/Driver.cpp">https://github.com/llvm/llvm-project/blob/master/lld/COFF/Driver.cpp</a>, str.
1521-1526). Seems like bug.</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>