fix bug 11019 RCL_2_4
authortimkelly
Fri, 02 Apr 2010 10:01:56 -0500
branchRCL_2_4
changeset 1153 8d5b825f0a74
parent 1152 0af9cb0ed84e
child 1155 a1b3518585ae
fix bug 11019
builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideSBSv2Builder.java
--- a/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideSBSv2Builder.java	Thu Apr 01 13:25:16 2010 -0500
+++ b/builder/com.nokia.carbide.cdt.builder/src/com/nokia/carbide/cdt/internal/builder/CarbideSBSv2Builder.java	Fri Apr 02 10:01:56 2010 -0500
@@ -502,6 +502,7 @@
 		args.add("-c"); //$NON-NLS-1$
 		String configName = getConfigName(buildConfig);
 		if (configName == null){ 
+			//TODO: Try to contrive if the project hasn't yet been converted.....
 			configName = "error_retrieving_sbs_config"; 
 		}
 		if (isTest) {
@@ -585,9 +586,12 @@
 		ICarbideProjectInfo cpi = buildConfig.getCarbideProject();
 		IPath workingDirectory = cpi.getINFWorkingDirectory();
 		
-		String buildTarget = buildConfig.getPlatformString().toLowerCase() + "_" + buildConfig.getTargetString().toLowerCase();
-		
-		String[] sbsArgs = new String[] {"--source-target=" + file.toOSString(), COMPILE_ARG, buildTarget, COMPONENT_ARG, fullMMPPath.toFile().getName()};
+		String configName = getConfigName(buildConfig);
+		if (configName == null){ 
+			//TODO: Try to contrive if the project hasn't yet been converted.....
+			configName = "error_retrieving_sbs_config"; 
+		}
+		String[] sbsArgs = new String[] {"--source-target=" + file.toOSString(), COMPILE_ARG, configName, COMPONENT_ARG, fullMMPPath.toFile().getName()};
 		launcher.setErrorParserManager(buildConfig.getCarbideProject().getINFWorkingDirectory(), buildConfig.getErrorParserList());
 		
 		int retVal = launcher.executeCommand(SBS_BAT, sbsArgs, getResolvedEnvVars(buildConfig), workingDirectory);