1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 17:05:26 +02:00

Fix for bugzilla 71251 -- [Managed Build] Unexpected extensions crash GnuMakefileGenerator

Now the source macro generation stops if there is no rule for the extension.
This commit is contained in:
Sean Evoy 2005-01-28 20:44:37 +00:00
parent 7477803763
commit 64b00d9187

View file

@ -524,9 +524,10 @@ public class GnuMakefileGenerator implements IManagedBuilderMakefileGenerator {
if (info.buildsFileType(ext)) {
// look for the extension in the map
StringBuffer bufferForExtension = new StringBuffer();
if (extensionToRuleStringMap.containsKey(ext)) {
bufferForExtension.append(extensionToRuleStringMap.get(ext).toString());
if (!extensionToRuleStringMap.containsKey(ext)) {
continue;
}
bufferForExtension.append(extensionToRuleStringMap.get(ext).toString());
if(bufferForExtension != null &&
!getOutputExtensions().contains(bufferForExtension.toString())) {