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:
parent
7477803763
commit
64b00d9187
1 changed files with 3 additions and 2 deletions
|
@ -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())) {
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue