Catch the "no cpp.exe" problem before it triggers an "Unknown arg: -fm" message.
authorWilliam Roberts <williamr@symbian.org>
Fri, 15 Oct 2010 13:02:36 +0100
changeset 52 8e8f3d664437
parent 51 f8873fb270cd
child 53 884af2e877bf
Catch the "no cpp.exe" problem before it triggers an "Unknown arg: -fm" message.
tools/buildrom.pm
--- a/tools/buildrom.pm	Fri Oct 15 10:02:23 2010 +0100
+++ b/tools/buildrom.pm	Fri Oct 15 13:02:36 2010 +0100
@@ -731,6 +731,7 @@
 	{
 		# Enforce Feature Manager if macro SYMBIAN_FEATURE_MANAGER is defined in the HRH file.
 		my @hrhMacros = &Variant_GetMacroList;	
+		die("No system-wide #defines??!") if (scalar @hrhMacros == 0);	
 		if (grep /^SYMBIAN_FEATURE_MANAGER\s*$/, @hrhMacros)
 		{
 			$enforceFeatureManager = 1;