src/Palete/ValaSource.vala
authorAlan Knowles <alan@roojs.com>
Thu, 21 May 2015 07:17:03 +0000 (15:17 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 21 May 2015 07:17:03 +0000 (15:17 +0800)
src/Builder4/config1.builder
src/Builder4/Editor.bjs
src/Builder4/Editor.vala

src/Palete/ValaSource.vala

index a18c1bf..56c6189 100644 (file)
@@ -229,7 +229,7 @@ namespace Palete {
                        }
                         
                }
-               public void checkFilePlainSpawn(Project.Project proj, string filename, string contents )
+               public void checkFilePlainSpawn(Project.Project project, string filename, string contents )
                {
                        // race condition..
                        if (this.compiler != null) { 
@@ -252,10 +252,14 @@ namespace Palete {
                        string[] args = {};
                        args += BuilderApplication._self;
                        args += "--project";
-                       args += this.file.project.fn;
+                       args +=  project.fn;
                        args += "--target";
-                       args += this.file.build_module;
-                        
+                       args += project.firstBuildModule;
+                       args += "--add-file";
+                       args +=  tmpfile.get_path();
+                       args += "--skip-file";
+                       args += filename;
+                       
                         
                        
                        this.compiler = new Spawn("/tmp", args);