1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

crecoskie Oct 17, 2005

- missed a couple of code paths with the macro support fixes for 111203
This commit is contained in:
Chris Recoskie 2005-10-17 18:09:00 +00:00
parent 88dc548a51
commit 79e643ba6d
2 changed files with 41 additions and 0 deletions

View file

@ -198,6 +198,25 @@ public class DefaultGCCDependencyCalculator implements IManagedDependencyGenerat
else {
buildCmd = cmdLInfo.getCommandLine();
}
// resolve any remaining macros in the command after it has been
// generated
try {
String resolvedCommand = ManagedBuildManager
.getBuildMacroProvider().resolveValueToMakefileFormat(
buildCmd,
EMPTY_STRING,
WHITESPACE,
IBuildMacroProvider.CONTEXT_FILE,
new FileContextData(resource.getLocation(),
null, null, info
.getDefaultConfiguration()
.getToolChain()));
if ((resolvedCommand = resolvedCommand.trim()).length() > 0)
buildCmd = resolvedCommand;
} catch (BuildMacroException e) {
}
}
buffer.append(IManagedBuilderMakefileGenerator.TAB +

View file

@ -2346,6 +2346,28 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
if( cmdLInfo == null ) buildCmd = cmd + WHITESPACE + buildFlags + WHITESPACE +
outflag + WHITESPACE + outputPrefix + OUT_MACRO + otherPrimaryOutputs + WHITESPACE + IN_MACRO;
else buildCmd = cmdLInfo.getCommandLine();
// resolve any remaining macros in the command after it has been
// generated
try {
String resolvedCommand = ManagedBuildManager
.getBuildMacroProvider()
.resolveValueToMakefileFormat(
buildCmd,
EMPTY_STRING,
WHITESPACE,
IBuildMacroProvider.CONTEXT_FILE,
new FileContextData(sourceLocation,
outputLocation, null, info
.getDefaultConfiguration()
.getToolChain()));
if ((resolvedCommand = resolvedCommand.trim()).length() > 0)
buildCmd = resolvedCommand;
} catch (BuildMacroException e) {
}
buffer.append(TAB + AT + ECHO + WHITESPACE + buildCmd + NEWLINE);
buffer.append(TAB + AT + buildCmd);
}