U++ framework
Do not panic. Ask here before giving up.

Home » Community » U++ community news and announcements » theide: build_info.h, removal of bm* macros
theide: build_info.h, removal of bm* macros [message #44155] Sat, 10 January 2015 11:40
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
Build system of theide was adding defines to compiler commandline bmYEAR, bmMONTH etc... so that application can now its compilation time and display it properly.

This was now found to be incompatible with attempts to introduce precompiled headers support (well, BLITZ is still superior for debug mode builds, but release mode builds will benefit).

So these macros are now removed and replaced by "build_info.h" builder generated file, which is on include path. In practice:

#include <Core/Core.h>

#include <build_info.h>

using namespace Upp;

CONSOLE_APP_MAIN
{
	StdLogSetup(LOG_COUT|LOG_FILE);

	DUMP(bmYEAR);
	DUMP(bmMONTH);
	DUMP(bmDAY);
	DUMP(bmHOUR);
	DUMP(bmMINUTE);
	DUMP(bmSECOND);
	DUMP(bmTIME);
	DUMP(bmMACHINE);
	DUMP(bmUSER);
}


Aside from being compatible with pch, another advantage is that information can be now more structured (as with bmTIME) and we can more easily add more info as needed.
 
Read Message
Previous Topic: Win32 installation now installs 64-bit TheIDE on Win64
Next Topic: SSE2 flag removed
Goto Forum:
  


Current Time: Wed Sep 02 08:39:54 GMT+2 2026

Total time taken to generate the page: 0.00568 seconds