core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/SymbianBuildContextDataCache.java
changeset 1906 6f11f5393a5c
parent 1823 7b722bddc011
equal deleted inserted replaced
1905:a27f1d43992b 1906:6f11f5393a5c
   157 		// once and cache the values.  only reset the cache when the hrh or any of its includes
   157 		// once and cache the values.  only reset the cache when the hrh or any of its includes
   158 		// has changed.
   158 		// has changed.
   159 		
   159 		
   160 		boolean buildCache = false;
   160 		boolean buildCache = false;
   161 		
   161 		
   162 		if (hrhFileInfo == null) {
   162 		if (hrhFileInfo == null || hrhFileInfo.getFiles().length == 0) {
   163 			// hasn't been built yet, or was flushed
   163 			// hasn't been built yet, or was flushed
   164 			buildCache = true;
   164 			buildCache = true;
   165 		} else {
   165 		} else {
   166 			// Cache exists.  See if any of the files have changed
   166 			// Cache exists.  See if any of the files have changed
   167 			if (sdk != null && hrhFileInfo.anyChanged()) {
   167 			if (sdk != null && hrhFileInfo.anyChanged()) {
   309 			compilerPrefixFileInfo = null;
   309 			compilerPrefixFileInfo = null;
   310 		}
   310 		}
   311 		
   311 		
   312 		compilerPrefixFile = prefixFile;
   312 		compilerPrefixFile = prefixFile;
   313 
   313 
   314 		if (compilerPrefixFileInfo == null ||
   314 		if (compilerPrefixFileInfo == null || compilerPrefixFile == null ||
   315 				compilerPrefixFileInfo.anyChanged()) {
   315 				compilerPrefixFileInfo.anyChanged()) {
   316 
   316 
   317 			changed = true;
   317 			changed = true;
   318 
   318 
   319 			compilerPrefixMacros.clear();
   319 			compilerPrefixMacros.clear();