src/Palete/ValaSource.vala
authorAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 07:40:23 +0000 (15:40 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 28 May 2015 07:40:23 +0000 (15:40 +0800)
src/Palete/ValaSource.vala

index 1da956a..11db745 100644 (file)
@@ -193,12 +193,14 @@ namespace Palete {
                         
                }
                
-               public bool spawnExecute(JsRender.JsRender file)
+               public void spawnExecute(JsRender.JsRender file)
                {
                        // race condition..
                        if (this.compiler != null) { 
                                return false;
                        }
+                       var pr = (Project.Gtk)(file.project);
+                       
                        
                        this.file = file;
                        this.line_offset = 0;
@@ -208,7 +210,13 @@ namespace Palete {
                        args += "--project";
                        args += this.file.project.fn;
                        args += "--target";
-                       args += this.file.build_module;
+                       if (this.file.build_module.length > 0 ) {
+                           args += this.file.build_module;
+                       } else {
+                           args += pr.firstBuildModule();
+                       
+                       
+