<!DOCTYPE html>
<html>
<head>
<title></title>
</head>
<body><div>In our fork of clang, we a bunch of tests that require the compiled test program to be executed. I tried creating a lit test with a RUN command like so:<br></div>
<div> </div>
<blockquote><div>// RUN: %clang %s ... -o %t.exe<br></div>
<div>// RUN: %t.exe<br></div>
</blockquote><div> </div>
<div>This works fine on Linux, but on Windows I get:<br></div>
<div> </div>
<blockquote><div>Command 0 Stderr:<br></div>
<div>clang.EXE: error: unable to execute command: program not executable<br></div>
<div>clang.EXE: error: linker command failed with exit code 1 (use -v to see invocation)<br></div>
</blockquote><div> </div>
<div>(The test script never even gets to the second RUN line.)<br></div>
<div> </div>
<div>Running the clang command manually (that llvm-lit -v outputs) works fine.<br></div>
<div>Any idea what could be the issue?<br></div>
<div> </div>
<div id="sig19426269"><div class="signature">---<br></div>
<div class="signature">Best regards,<br></div>
<div class="signature"> </div>
<div class="signature">Gábor 'ShdNx' Kozár<br></div>
<div class="signature"><a href="http://gaborkozar.me">http://gaborkozar.me</a><br></div>
<div class="signature"> </div>
</div>
<div> </div>
</body>
</html>