Author Topic: wx2.9 compiler version detection disabled in svn rev 5616 by Biplab  (Read 5963 times)

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
@Biplab (cc: other wx2.9 user/devs):
you have disabled the compiler versiondetection in rev 5616.
This breaks the using of precompiled headers, if they are not besides the headers, because C::B uses -I- instead of -iquote to prepend the include-dir, where the pch's are.

Is this still needed ?
It seems to work on linux 64 bit with wx2.9.4 from trunk and on win7 with wx2.9.3 from official download.

If it is still needed, I would like to change the ifdef with this patch:
Code
@@ -322,7 +322,9 @@ void CompilerMINGW::SetVersionString()
 {
     /*  NOTE (Biplab#9#): There is a critical bug which blocks C::B from starting up.
         So we'll disable version string checking till we fix the bug. */
-    #if !wxCHECK_VERSION(2, 9, 0)
+    #if wxCHECK_VERSION(2, 9, 0)
+    m_VersionString = _T("4.5.0");
+    #else
 //    Manager::Get()->GetLogManager()->DebugLog(_T("Compiler detection for compiler ID: '") + GetID() + _T("' (parent ID= '") + GetParentID() + _T("')"));
 
     wxArrayString output, errors;
Just a dirty hack, but compilers less than 4.x.x will hopefully not be used very much with wx2.9 builds.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: wx2.9 compiler version detection disabled in svn rev 5616 by Biplab
« Reply #1 on: March 01, 2012, 01:09:17 pm »
@Jens,

I can do a check and report back.
Be a part of the solution, not a part of the problem.

Offline Biplab

  • Developer
  • Lives here!
  • *****
  • Posts: 1874
    • Biplab's Blog
Re: wx2.9 compiler version detection disabled in svn rev 5616 by Biplab
« Reply #2 on: March 01, 2012, 03:44:12 pm »
@Jens,

A quick test shows that the bug I noticed is now fixed. Thus we can safely enable detection code.

Please go ahead and remove that check. :)
Be a part of the solution, not a part of the problem.

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7252
Re: wx2.9 compiler version detection disabled in svn rev 5616 by Biplab
« Reply #3 on: March 01, 2012, 05:34:04 pm »
@Jens,

A quick test shows that the bug I noticed is now fixed. Thus we can safely enable detection code.

Please go ahead and remove that check. :)

Done in svn r7867.

Many thanks for the quick check!