Menu

[r13140]: / branches / wxfnb_to_wxaui / src / cbgcc420.script  Maximize  Restore  History

Download this file

24 lines (22 with data), 521 Bytes

function SetBuildOptions(base)
{
	if(PLATFORM == PLATFORM_MSW)
	{
		local CompilerId = base.GetCompilerID();
		if(CompilerId.Matches(_T("gcc")))
		{
			local CF = GetCompilerFactory();
			if(!IsNull(CF))
			{
				local Version = CF.GetCompilerVersionString(CompilerId);
//				LogDebug(Version);
				// check how this string looks like and compare with 4.2.0
				local bDoIt = (Version >= _T("4.2.0"));
				if(bDoIt)
				{
					base.AddCompilerOption(_T("-Wno-attributes"));
				}
			}
		}
	}
} // end of SetBuildOptions
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.