Check whether compiler prefix file returned by Raptor query really exist when scanning for compiler macros. C3_BUILDER_WORK
authorstechong
Wed, 21 Jul 2010 15:24:25 -0500
branchC3_BUILDER_WORK
changeset 1662 a3c5489267d1
parent 1659 48d0d704d5e6
child 1663 21ded3449e77
Check whether compiler prefix file returned by Raptor query really exist when scanning for compiler macros.
core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv2.java
--- a/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv2.java	Wed Jul 21 13:52:53 2010 -0500
+++ b/core/com.nokia.carbide.cpp.sdk.core/src/com/nokia/carbide/cpp/internal/api/sdk/BuildContextSBSv2.java	Wed Jul 21 15:24:25 2010 -0500
@@ -152,7 +152,7 @@
 	@Override
 	public List<IDefine> getCompilerMacros() {
 		IPath prefixFile = getCompilerPrefixFile();
-		if (prefixFile == null) {
+		if (prefixFile == null || !prefixFile.toFile().exists()) {
 			return Collections.emptyList();
 		}