Set to use new compiler when compiling with jake

This commit is contained in:
Martin Carlberg committed 2012-12-20 15:20:38 +01:00
1 parent 619f90c677
commit ac3a399df3
2 files changed
+8 -1

No files matched your search

@@ -803,7 +803,9 @@ BundleTask.prototype.defineStaticTask = function()
BundleTask.prototype.defineSourceTasks = function()
{
var sources = this.sources();
// Use new compiler
require("objective-j").ObjJCompiler.setCurrentUsedVersion("objj_compiler2");
var sources = this.sources();
if (!sources)
return;
+5
View File
@@ -119,6 +119,11 @@ GLOBAL(ObjJCompilerSetUsedVersion) = function(version)
ObjJCompiler.usedVersion = version;
}
ObjJCompiler.setCurrentUsedVersion = function(version)
{
ObjJCompiler.usedVersion = version;
}
exports.setCurrentCompilerFlags = function(/*String*/ compilerFlags)
{
currentCompilerFlags = compilerFlags;