Open ompadu opened 10 months ago
I ran a wsl clang ...
command on the command-line manually with Process Monitor enabled. It looks like the actual writes to the output file come from DllHost.exe, which is already running before tup executes anything (so, DllHost.exe is not a subprocess of wsl or clang, so tup can't do it's DLL injection to it in order to see file reads/writes). I guess when you run wsl the subcommands go through some service rather than doing the work themselves?
What is the benefit you are looking for to run clang through wsl instead of natively on Windows? Or, why not use tup inside wsl and then use the Linux subsystem's clang directly?
Hello,
I am using the following Lua rule on Windows to successfully build a Linux executable:
tup.definerule{ inputs = {'source/main.c'}, command = 'wsl clang %f -o %o', outputs = {'build/hello'} }
Even though the file is produced at the expected path and it runs under WSL1 as expected, tup throws the following error:
Maybe there's something up with elf executable detection?