Patch #1656 2006-11-24 18:41

biplab

A fix for Bug #9534 and Improvements to Console Wizard
Download
1656-A_fix_for_Bug.patch (1.4 KB)
Category
Application::Refinement
Status
Accepted
Close date
2006-11-25 17:07
Assigned to
mortenmacfly
--- C:/CB_20061121_rev3253_win32/share/CodeBlocks/templates/wizard/console/old_wizard.script    Sat Nov 25 01:15:26 2006
+++ C:/CB_20061121_rev3253_win32/share/CodeBlocks/templates/wizard/console/wizard.script    Sat Nov 25 01:27:49 2006
@@ -97,13 +97,21 @@
     // Debug build target
     local target = project.GetBuildTarget(Wizard.GetDebugName());
     if (!IsNull(target))
+    {
         SetupTarget(target, true);
+        CppExceptionsOn(target, Wizard.GetCompilerID());
+        IncludeAdditionalLib(target, Wizard.GetCompilerID());
+    }
 
     // Release build target
     target = project.GetBuildTarget(Wizard.GetReleaseName());
     if (!IsNull(target))
+    {
         SetupTarget(target, false);
-
+        CppExceptionsOn(target, Wizard.GetCompilerID());
+        IncludeAdditionalLib(target, Wizard.GetCompilerID());
+    }
+    
     // all done!
     return true;
 }
@@ -124,12 +132,14 @@
     if (is_debug)
     {
         // enable debugging symbols for this target
-        DebugSymbolsOn(target, Wizard.GetTargetCompilerID());
+        //DebugSymbolsOn(target, Wizard.GetTargetCompilerID());
+        DebugSymbolsOn(target, Wizard.GetCompilerID());
     }
     else
     {
         // enable optimizations for this target
-        OptimizationsOn(target, Wizard.GetTargetCompilerID());
+        //OptimizationsOn(target, Wizard.GetTargetCompilerID());
+        OptimizationsOn(target, Wizard.GetCompilerID());
     }
 
     // all done!
mortenmacfly 2006-11-25 17:07

Applied (but in a modified variant) in r3269. Thanks!