Merge commit
authorEd Swartz <ed.swartz@nokia.com>
Mon, 14 Dec 2009 13:06:58 -0600
changeset 685 dabe5b8e3aec
parent 684 8e7900690341 (current diff)
parent 682 7b05fffc0084 (diff)
child 686 745a1a177838
child 691 ad1de800b4ba
Merge commit
--- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideLanguageData.java	Mon Dec 14 12:59:27 2009 -0600
+++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideLanguageData.java	Mon Dec 14 13:06:58 2009 -0600
@@ -228,7 +228,7 @@
 		if (oemDir.exists()) {
 			includeEntries.add(new CIncludePathEntry(new Path(oemDir.getAbsolutePath()), 0));
 		}
-
+		
 		// cache the macros
 		macroEntries = new ArrayList<ICLanguageSettingEntry>(0);
 
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianBuildContext.java	Mon Dec 14 12:59:27 2009 -0600
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianBuildContext.java	Mon Dec 14 13:06:58 2009 -0600
@@ -305,7 +305,14 @@
 		if (installedRVCTTools.length > 0) {
 			rvctFragment = getRVCTFragment(installedRVCTTools[0]);
 		}
-		return getSDK().getIncludePath().append(rvctFragment).append(rvctFragment + ".h"); //$NON-NLS-1$
+		IPath prefixFilePath = getSDK().getIncludePath().append(rvctFragment).append(rvctFragment + ".h"); //$NON-NLS-1$
+		if (prefixFilePath.toFile().exists()){
+			return prefixFilePath;
+		} else {
+			// SF kits around SF^3 started to only use a single rvct.h header instead of specific versioned ones
+			// based on the default installation
+			return getSDK().getIncludePath().append("rvct").append("rvct" + ".h");
+		}
 	}
 
 	private String getRVCTFragment(IRVCTToolChainInfo info) {