From bef0ca18c67372d392ee2b4a0be2643c2e608ad8 Mon Sep 17 00:00:00 2001 From: Martin Carlberg Date: Sun, 17 Mar 2013 20:45:34 +0100 Subject: [PATCH] New: New option to generate code for the objjc tool A new option flag '-G' can be added to let the compiler generate the code instead of copy and alter it from the source code --- Objective-J/CommonJS/lib/objective-j/compiler.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Objective-J/CommonJS/lib/objective-j/compiler.js b/Objective-J/CommonJS/lib/objective-j/compiler.js index 34e22c80d..65079fd48 100644 --- a/Objective-J/CommonJS/lib/objective-j/compiler.js +++ b/Objective-J/CommonJS/lib/objective-j/compiler.js @@ -174,6 +174,9 @@ function resolveFlags(args) else if (argument.indexOf("-O") === 0) objjcFlags |= ObjectiveJ.ObjJAcornCompiler.Flags.Compress; + else if (argument.indexOf("-G") === 0) + objjcFlags |= ObjectiveJ.ObjJAcornCompiler.Flags.Generate; + else filePaths.push(argument); }