ide/Debugger: Setting target bits based on compiler settings
authorJerome St-Louis <jerome@ecere.com>
Wed, 6 Feb 2013 07:09:37 +0000 (02:09 -0500)
committerJerome St-Louis <jerome@ecere.com>
Sat, 16 Feb 2013 06:02:56 +0000 (01:02 -0500)
ide/src/designer/CodeEditor.ec

index dd9732b..0556883 100644 (file)
@@ -2665,6 +2665,11 @@ class CodeEditor : Window
       printf("classes.count: %d\n", globalContext.classes.count);
 #endif
 
+      {
+         CompilerConfig compiler = ideSettings.GetCompilerConfig(ide.workspace.compiler);
+         SetTargetBits(compiler.supportsBitDepth ? 32 : GetHostBits());
+         delete compiler;
+      }
       this.privateModule = __ecere_COM_Initialize(false, 1, null);
 
       SetPrivateModule(privateModule);