<div dir="ltr"><div>Hi,<br><br></div>Flex on windows (version 2.5.4a, from <a href="http://gnuwin32.sourceforge.net/packages/flex.htm">GnuWin32 project</a>) doesn't accept arguments with spaces. For example:<br><div><div><br> C:\GnuWin32\bin\flex.exe -P scanner -o E:/Project/default/compiler.MSVC2013-amd64.c9ce5223/lexyacc/scannerlex.yy.c E:/Project/scanner.l<br>C:\GnuWin32\bin\flex.exe: can't open scanner<br><br></div><div>The same command works fine if there are no spaces between arguments keys and values.<br clear="all"></div><div><br></div><div>I fixed this by changing lexyacc.qbs (line 28):<br><br>old:<br><span style="font-family:monospace,monospace">if (product.moduleProperty("lex_yacc", "uniqueSymbolPrefix"))<br>    args.push("-P", input.baseName, "-o", output.filePath);<br></span><br></div><div>new:<br><span style="font-family:monospace,monospace">if (product.moduleProperty("lex_yacc", "uniqueSymbolPrefix"))<br></span></div><div><span style="font-family:monospace,monospace">    args.push("-P" + input.baseName, "-o" + output.filePath);<br></span></div><div><br></div><div>This works for flex 2.5.4a on Windows and for lex 2.6.0 on Linux.<br><br></div><div>Hope this can be useful for others and may be devs can apply the fix in mainstream repo as well.<br></div><div><br><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr">----------------------------</div><div dir="ltr">Kind regards,</div><div>Aleksei Skorodumov</div></div></div></div>
</div></div></div>