FIX #1828: installing to a patch with spaces in
authorSimon Marlow <simonmar@microsoft.com>
Thu, 15 Nov 2007 15:57:47 +0000 (15:57 +0000)
committerSimon Marlow <simonmar@microsoft.com>
Thu, 15 Nov 2007 15:57:47 +0000 (15:57 +0000)
commit5af10d51868a48e1ecb0b246f56bfff2e428aedd
tree6498134f58a40a9cf841a81ca0f405f534511cee
parent118231a01f00bbe7726c846a37c1b18badfb8463
FIX #1828: installing to a patch with spaces in
We have to pass the path to gcc when calling windres, which itself
might have spaces in.  Furthermore, we have to pass the path to gcc's
tools to gcc.  This means getting the quoting right, and after much
experimentation and reading of the windres sources I found something
that works: passing --use-temp-files to windres makes it use its own
implementation of quoting instead of popen(), and this does what we
want.  Sigh.
compiler/main/SysTools.lhs