src/Palete/ValaSource.vala
authorAlan Knowles <alan@roojs.com>
Thu, 3 Dec 2015 04:53:32 +0000 (12:53 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 3 Dec 2015 04:53:32 +0000 (12:53 +0800)
src/Palete/ValaSource.vala

index 3eda0c2..700be0e 100644 (file)
@@ -366,6 +366,19 @@ namespace Palete {
                public void runResult(int res, string output, string stderr)
                {
                        this.compiler = null;
+                       var exe = "/tmp/testrun";
+                       var mod = "";
+                       if (this.file.build_module.length > 0 ) {
+                   mod =  this.file.build_module;
+                       } else {
+                           mod =  pr.firstBuildModule();
+                       }
+                       if (mod.length < 1) {
+                               return;
+                       }
+                       
+                       
+                       
                        if (!GLib.FileUtils.test("/tmp/testrun", GLib.FileTest.EXISTS)) {
                                print("Missing outfile\n");
                                return;