<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/94563>94563</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
llvm-mt doesn't support multiple arguments to /manifest
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
glandium
</td>
</tr>
</table>
<pre>
Per https://learn.microsoft.com/en-us/windows/win32/sbscs/mt-exe:
> -manifest
>
> Specifies the name of the manifest file. To modify a single manifest, specify one manifest file name. For example, component.manifest.
>
> To merge multiple manifests, specify the names of the source manifests here. Specify the name of the updated manifest with either the -out, -outputresource, or -updateresource options. For example, the following command line requests an operation that merges two manifests, man1.manifest and man2.manifest, into a new manifest, man3.manifest.
>
> mt.exe -manifest man1.manifest man2.manifest -out:man3.manifest
>
> No colon (:) is required with the -manifest option.
When building with cmake, such command lines can be generated, such as this one when building cmake with cmake and clang:
```
/builds/worker/fetches/clang/bin/llvm-mt /nologo /manifest Source/CMakeFiles/cmcldeps.dir/intermediate.manifest /builds/worker/fetches/cmake/Source/cmake.version.manifest '/outputresource:bin/cmcldeps.exe;#1'
```
The command fails with:
```
llvm-mt: error: invalid option '/builds/worker/fetches/cmake/Source/cmake.version.manifest'
```
(this is not because it thinks it might be an option, as it begins with /, it fails the same way with relative paths)
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJysVUuP4zYT_DX0pWFBpvzSQQfv7KfbFwTYBXKmxJbUGT4UkrLH_z4g5Zd2Z5NLgMGYIpvV1cViU3hPvUGs2O4L231diSkM1lW9EkbSpFeNldfqd3QwhDB6VpwYrxmvFQpnMk2ts952IWutZrxGs5484_WFjLSX26jgjNe-8W381mGNHxhh8q8sP7Hif7DWwlCHPgDLy8f0c_3biC11hB7CgGCERrBdGj82dqQwg-8WtJXUXUGAJ9OrZwTjb-ATzhWs-WFnwsygtg7wQ-hRYQxvr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