<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/92736>92736</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            [LLVM] CYGWIN: cannot build OCaml bindings.
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
            new issue
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          carlo-bramini
      </td>
    </tr>
</table>

<pre>
    On CYGWIN, I configured successfully the latest sources at the time of writing and I tried to compile them.
Unfortunately, the process stopped with this error:
```
FAILED: bindings/ocaml/llvm/CMakeFiles/ocaml_llvm.util
/bin/sh bindings/ocaml/llvm/CMakeFiles/ocaml_llvm.dir/utility.sh f2f4223cd34c44bf
Error copying file "/home/carlo/packages/llvm/build.cygwin/bindings/ocaml/llvm/dllllvm.dll" to "/home/carlo/packages/llvm/build.cygwin/./lib/ocaml/llvm/".
```
By looking the content of that directory, there is not a `dllllvm.dll` but a `dllllvm.so` instead, but this is a nonsense:

![immagine](https://github.com/llvm/llvm-project/assets/30959007/e77b0ccd-4fd4-44be-b310-c5e85b165d6e)

The `dllllvm.so` is clearly a PE executable because I looked inside with hexedit, so it is just a wrong extension applied.
So, it seems that there is some piece of script somewhere that forced the extension of that file to `.so` instead of `.dll`, but at the moment I could not find it.
If somebody could give me some suggestions, I can test it and provide a PR for fixing the issue.
Without OCaml bindings, LLVM was built successfully.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJycVU9v27gT_TT0ZWBDpiU5PviQxNEPBtJfi_1X7GlBkSNpGooUyFEcf_sFaadJu93DFjBgiBzNvJn35knFSL1D3IvqTlSHhZp58GGvVbB-2QY1kqNF6815_9HB_Z__-3z8v5D3cATtXUf9HNBAnLXGGLvZ2jPwgGAVY2SIfg4aIyjOp0wjgu_gFIjJ9aCcgSNwIDTAHrQfJ7KYQseVKA6iuP3ddT7w7BSjP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