mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
RESOLVED - bug 163672: Other Objects on Win
https://bugs.eclipse.org/bugs/show_bug.cgi?id=163672 Patch from Keith Campbell
This commit is contained in:
parent
443969e7a7
commit
26f4e54156
1 changed files with 16 additions and 2 deletions
|
@ -1039,9 +1039,23 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
|
|||
valueList = (List)entry.getValue();
|
||||
Iterator valueIter = valueList.iterator();
|
||||
while (valueIter.hasNext()) {
|
||||
macroBuffer.append(WHITESPACE + ensurePathIsGNUMakeTargetRuleCompatibleSyntax((String)valueIter.next()));
|
||||
String path = (String) valueIter.next();
|
||||
|
||||
// These macros will also be used within commands.
|
||||
// Make all the slashes go forward so they aren't
|
||||
// interpreted as escapes and get lost.
|
||||
// See https://bugs.eclipse.org/163672.
|
||||
path = path.replace('\\', '/');
|
||||
|
||||
path = ensurePathIsGNUMakeTargetRuleCompatibleSyntax(path);
|
||||
|
||||
macroBuffer.append(WHITESPACE);
|
||||
macroBuffer.append(path);
|
||||
}
|
||||
if (iterator.hasNext()) macroBuffer.append(NEWLINE + NEWLINE);
|
||||
// terminate the macro definition line
|
||||
macroBuffer.append(NEWLINE);
|
||||
// leave a blank line before the next macro
|
||||
if (iterator.hasNext()) macroBuffer.append(NEWLINE);
|
||||
}
|
||||
|
||||
// For now, just save the buffer that was populated when the rules were created
|
||||
|
|
Loading…
Add table
Reference in a new issue