[wx] Build fix, do not build WebCore as a convenience library as this leads to
[WebKit.git] / WebKitTools / wx / build / waf_extensions.py
index 68164417d69881705f2370735b6fb38d2eba2ffd..f50f2641870f58f46b07a4dbc5712c3a2dae3f15 100644 (file)
@@ -35,7 +35,12 @@ def exec_command(s, **kw):
     if sys.platform.startswith('win') and len(' '.join(s)) > 32000:
         import tempfile
         (fd, filename) = tempfile.mkstemp()
-        os.write(fd, ' '.join(s[1:]))
+        t = []
+        for i in s:
+            if i.find(" ") != -1:
+                i = '"%s"' % i
+            t.append(i)
+        os.write(fd, ' '.join(t[1:]))
         os.close(fd)
         
         s = [s[0], '@' + filename]