mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-13 11:15:38 +02:00
Bug 422378: allow case of getOutputNames() returning null
Allow GnuMakefileGenerator to completely ignore an input file Change-Id: If4b45db8482b273f4729211d55cfa4f201760b29 Signed-off-by: jantje <eclipse@baeyens.it>
This commit is contained in:
parent
5d6f8c3b2b
commit
5cafc1413a
1 changed files with 47 additions and 45 deletions
|
@ -3256,6 +3256,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
|
||||||
IPath[] inPaths = new IPath[1];
|
IPath[] inPaths = new IPath[1];
|
||||||
inPaths[0] = sourceLocation;
|
inPaths[0] = sourceLocation;
|
||||||
IPath[] outPaths = nameProvider.getOutputNames(tool, inPaths);
|
IPath[] outPaths = nameProvider.getOutputNames(tool, inPaths);
|
||||||
|
if (outPaths != null) {
|
||||||
for (int j=0; j<outPaths.length; j++) {
|
for (int j=0; j<outPaths.length; j++) {
|
||||||
IPath outPath = outPaths[j];
|
IPath outPath = outPaths[j];
|
||||||
String outputName = outPaths[j].toString();
|
String outputName = outPaths[j].toString();
|
||||||
|
@ -3310,6 +3311,7 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator2 {
|
||||||
enumeratedSecondaryOutputs.add(resolvePercent(outPath, sourceLocation));
|
enumeratedSecondaryOutputs.add(resolvePercent(outPath, sourceLocation));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
} else
|
} else
|
||||||
// 4. If outputNames is specified, use it
|
// 4. If outputNames is specified, use it
|
||||||
if (outputNames != null) {
|
if (outputNames != null) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue