<div dir="ltr"><div>I've finally developed what I think is a general solution to the problem of building existing Windows programs with clang:</div><div><br></div><div><a href="https://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_russellw_wic&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=Mfk2qtn1LTDThVkh6-oGglNfMADXfJdty4_bhmuhMHA&m=YcMBbXwHtljUfWVgVj2K7c0HnM4QQ2Sd4WtVqHO3j44&s=22Z4NBDsx6r8TP5ejuUidL-0utuXnYJD8d50OjYxKRo&e=">https://github.com/russellw/wic</a><br></div><div><br></div><div><div>Using this, I've managed to run attempted builds of Python, Ruby and Perl.</div><div><br></div><div>Python 2.7 works - it generates a python.exe that at least passes a preliminary smoke test.</div><div><br></div><div>Perl generates an executable that crashes partway through the build. I'll try to narrow it down further.</div><div><br></div><div>Ruby fails with an error message at the configuration step. I'm trying to find out why; it might be something easily fixable.</div></div></div>