From dce801ca996170d79329b19ceb02e0663c3951b0 Mon Sep 17 00:00:00 2001 From: James Gray Date: Tue, 29 Dec 2015 19:09:08 -0600 Subject: [PATCH] tools: fix for rebuild -final --- lime/tools/helpers/CPPHelper.hx | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lime/tools/helpers/CPPHelper.hx b/lime/tools/helpers/CPPHelper.hx index 8b0efbcba..4767614fe 100644 --- a/lime/tools/helpers/CPPHelper.hx +++ b/lime/tools/helpers/CPPHelper.hx @@ -145,8 +145,12 @@ class CPPHelper { public static function rebuild (project:HXProject, commands:Array>, path:String = null, buildFile:String = null):Void { var buildRelease = (!project.targetFlags.exists ("debug")); - var buildDebug = (project.targetFlags.exists ("debug") || (!project.targetFlags.exists ("rebuild") && !project.targetFlags.exists ("release") && project.config.exists ("project.rebuild.fulldebug"))); - + var buildDebug = (project.targetFlags.exists ("debug") || + (!project.targetFlags.exists ("rebuild") && + !project.targetFlags.exists ("release") && + !project.targetFlags.exists ("final") && + project.config.exists ("project.rebuild.fulldebug"))); + for (haxelib in project.haxelibs) { if (!rebuiltLibraries.exists (haxelib.name)) { @@ -320,4 +324,4 @@ class CPPHelper { } -} \ No newline at end of file +}