ide: Exporting environment variables to the compiler config
authorJerome St-Louis <jerome@ecere.com>
Wed, 5 Sep 2012 19:26:11 +0000 (15:26 -0400)
committerJerome St-Louis <jerome@ecere.com>
Wed, 5 Sep 2012 19:26:11 +0000 (15:26 -0400)
ide/src/project/Project.ec

index c94748f..5e1d8c7 100644 (file)
@@ -1987,6 +1987,14 @@ private:
             f.Printf("UPX := upx\n");
 
             f.Printf("\n");
+            if(compiler.environmentVars && compiler.environmentVars.count)
+            {
+               f.Printf("# ENVIRONMENT VARIABLES\n");
+               for(e : compiler.environmentVars)
+               {
+                  f.Printf("%s := %s\n", e.name, e.string);
+               }
+            }
 
             f.Printf("UPXFLAGS = -9\n\n"); // TOFEAT: Compression Level Option? Other UPX Options?