summaryrefslogtreecommitdiffstats
path: root/org.rtems.cdt/src/org/rtems/cdt/build/CommandLineGenerator.java
diff options
context:
space:
mode:
Diffstat (limited to 'org.rtems.cdt/src/org/rtems/cdt/build/CommandLineGenerator.java')
-rw-r--r--org.rtems.cdt/src/org/rtems/cdt/build/CommandLineGenerator.java28
1 files changed, 14 insertions, 14 deletions
diff --git a/org.rtems.cdt/src/org/rtems/cdt/build/CommandLineGenerator.java b/org.rtems.cdt/src/org/rtems/cdt/build/CommandLineGenerator.java
index d64af68..a3f551f 100644
--- a/org.rtems.cdt/src/org/rtems/cdt/build/CommandLineGenerator.java
+++ b/org.rtems.cdt/src/org/rtems/cdt/build/CommandLineGenerator.java
@@ -49,37 +49,37 @@ public class CommandLineGenerator extends ManagedCommandLineGenerator implements
IProject project = (IProject) tool.getParentResourceInfo().getParent().getOwner();
// Change platform
- Storage.changePlatform( project, getPlatform());
+ Storage.changePlatform(project, getPlatform());
// Determine tool key via the tool ID
String id = tool.getId();
String toolKey = "gcc";
- if (id.contains( "archiver")) {
+ if (id.contains("archiver")) {
toolKey = Constants.TOOL_ARCHIVER_KEY;
- } else if (id.contains( "assembler.gcc")) {
+ } else if (id.contains("assembler.gcc")) {
toolKey = Constants.TOOL_COMPILER_C_KEY;
- } else if (id.contains( "assembler")) {
+ } else if (id.contains("assembler")) {
toolKey = Constants.TOOL_ASSEMBLER_KEY;
- } else if (id.contains( "compiler.cpp")) {
+ } else if (id.contains("compiler.cpp")) {
toolKey = Constants.TOOL_COMPILER_CPP_KEY;
- } else if (id.contains( "compiler.c")) {
+ } else if (id.contains("compiler.c")) {
toolKey = Constants.TOOL_COMPILER_C_KEY;
- } else if (id.contains( "linker.cpp")) {
+ } else if (id.contains("linker.cpp")) {
toolKey = Constants.TOOL_LINKER_CPP_KEY;
- } else if (id.contains( "linker.c")) {
+ } else if (id.contains("linker.c")) {
toolKey = Constants.TOOL_LINKER_C_KEY;
}
// Set command name
- commandName = Storage.getProperty( project, toolKey);
- tool.setToolCommand( commandName);
+ commandName = Storage.getProperty(project, toolKey);
+ tool.setToolCommand(commandName);
// Combine tool options and options
- if (Storage.areToolOptionsEnabled( project)) {
- String [] toolOptions = Storage.getToolOptions( project, toolKey);
+ if (Storage.areToolOptionsEnabled(project)) {
+ String [] toolOptions = Storage.getToolOptions(project, toolKey);
String combinedOptions [] = new String [toolOptions.length + options.length];
- System.arraycopy( toolOptions, 0, combinedOptions, 0, toolOptions.length);
- System.arraycopy( options, 0, combinedOptions, toolOptions.length, options.length);
+ System.arraycopy(toolOptions, 0, combinedOptions, 0, toolOptions.length);
+ System.arraycopy(options, 0, combinedOptions, toolOptions.length, options.length);
options = combinedOptions;
}