STCCompilerInterface.st
changeset 2644 51666ff4ec9f
parent 2643 60d2bae2be58
child 2646 de9d7a6e6315
--- a/STCCompilerInterface.st	Mon Aug 08 22:12:17 2011 +0200
+++ b/STCCompilerInterface.st	Mon Aug 08 23:03:12 2011 +0200
@@ -466,7 +466,12 @@
 
     errorStream := 'errorOutput' asFilename newReadWriteStream.
 
-    command := ccPath , ' ' , cFlags , ' -D__INCREMENTAL_COMPILE__ -c ' , cFileName.
+    ccPath includesSeparator ifTrue:[
+        command := '"',ccPath , '"' 
+    ] ifFalse:[
+        command := ccPath
+    ].
+    command := command , ' ' , cFlags , ' -D__INCREMENTAL_COMPILE__ -c ' , cFileName.
 
     Verbose == true ifTrue:[
         'executing: ' infoPrint. command infoPrintCR.
@@ -832,11 +837,11 @@
 !STCCompilerInterface class methodsFor:'documentation'!
 
 version
-    ^ '$Header: /cvs/stx/stx/libcomp/STCCompilerInterface.st,v 1.19 2011-08-08 20:12:17 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/STCCompilerInterface.st,v 1.20 2011-08-08 21:03:12 cg Exp $'
 !
 
 version_CVS
-    ^ '$Header: /cvs/stx/stx/libcomp/STCCompilerInterface.st,v 1.19 2011-08-08 20:12:17 cg Exp $'
+    ^ '$Header: /cvs/stx/stx/libcomp/STCCompilerInterface.st,v 1.20 2011-08-08 21:03:12 cg Exp $'
 ! !
 
 STCCompilerInterface initialize!