<div dir="ltr"><div>I'm trying to compile some large programs with clang on Windows (with a view to compiling to bit code and then running some whole program optimisations on the bit code).</div><div><br></div><div>Take for example the Python 2.7 interpreter:</div><div><br></div><div>As is typically the case, the usual build procedure involves running msbuild which invokes the Microsoft compiler.</div><div><br></div><div>The most obvious procedure would then be to substitute clang-cl.exe for cl.exe and thereby take advantage of msbuild supplying correct flags, include paths et cetera.</div><div><br></div><div>What's the recommended procedure for this - rename clang-cl.exe to cl.exe and put it earlier in your path?</div><div><br></div><div>clang-cl requires some extra flags to get it to generate bit code instead of object files - what's the recommended way to get that when msbuild doesn't by default supply such flags?</div><div><br></div><div>Are there any existing tutorials or anything describing techniques for this?</div></div>