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

    <tr>
        <th>Summary</th>
        <td>
            [Windows 7] 'failed to rename temporary [...] 'invalid argument' ' when compiling simple c program
        </td>
    </tr>

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

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

    <tr>
      <th>Reporter</th>
      <td>
          Jimmy-Baby
      </td>
    </tr>
</table>

<pre>
    I compiled LLVM with MSVC yesterday on my Windows 10 machine using the 'INSTALL' project within the Visual Studio project I generated. Running 'clang -o src/main.exe src/main.c' from command prompt works fine on that same machine I built LLVM on, from it's default install directory (program files/LLVM).

However, when I copy all of the install files from the Windows 10 machine (the entire LLVM folder) over to my Windows 7 laptop (different directory altogether), and try to run that exact same command, this is what I get:

![image](https://user-images.githubusercontent.com/19278924/172757178-1940ea3a-c0ca-4eac-968f-2e3d31a07c34.png)

I am assuming it miiiight have something to do with symlinks but, I am not sure.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJxtU02TmzgQ_TX4ooLiwxhz4DCTVCpOTfaQSc2eG9SAdvVBSWIc_v12Y2fWW7UubAvUvH7v9VPv5NZdxODMojRK8fLy9l1cVZzF99e3T2LDENFL2ISzwmziT2WluwZR5MLAMCuLYg3KTiLOKJKyufzx-vPp5YVWYvHuLxziDqbsXvCmwgpavMZVKvdRcBETWvQQUWbix2ot4xHCoIEWqRPBD0n5xYCyGf7Cx9uBG43eGRZgwEoGNQs1df7vIEbm57g3RBHA4Afpi-hXpeNNrrNJ-ekGoyIhBiFxhJW2lQ0RtBZSeWLq_Ea8ztRi8mAIXWMgJoyRlG2W5J-T_On2-9Vd8R09415ntIIdXjbBWG7cvfgNvaPcmvPj_zGYWvIO2kgsboxHpyWjt8JRFxHd42waoWGJbuEXpRpH9PTqgwTQ0U1IkAzADNm3SBsE49e7W_gLhrtnd2u5kiYZBF1XLuG5xaR6etSdlEVSPysDEyb1ZyIwx7gELiq_0LUG9Om-G7KJcrH2_GRwNhLFjBpRTdGWzbktj7xsyqZuiuacFu0xR6ggHfIB0iPCkLan85iWWMmqgLwZqmO22IkVPdC5CJoThLAazpSKwij6THMUM7xTkpxBDufE0qW75T5sRitL6enXyJp3DOvIjNVjdpBdJduqhUNUUWNHaj98J8Wc2xH2k8RuomUDI5rFeeD01M9Zlt3rlH0HraQAP62G9HOW-bsH5nYgmVpQZtE0BXHP3WH1uvuvrTcr7_5p_f77L70fMbpVZMKe1rpu6-owd5APJ5B9DRL6ocjPfdHC2Pc4YD3UR6gPGnrUgQUmZWnxKnYIWhP9g-rKvCzzU97mVVkVpyw_yV6W42k8DUfZFG1C86IjqjPmkTk_HXy3U-rXKdCmViGGfzdpRmqyuPvJ-LDG2fnumzJmS5-h3w57925n_w-Tgo2d">