mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 21:05:37 +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)) {
|
if (info.buildsFileType(ext)) {
|
||||||
// look for the extension in the map
|
// look for the extension in the map
|
||||||
StringBuffer bufferForExtension = new StringBuffer();
|
StringBuffer bufferForExtension = new StringBuffer();
|
||||||
if (extensionToRuleStringMap.containsKey(ext)) {
|
if (!extensionToRuleStringMap.containsKey(ext)) {
|
||||||
bufferForExtension.append(extensionToRuleStringMap.get(ext).toString());
|
continue;
|
||||||
}
|
}
|
||||||
|
bufferForExtension.append(extensionToRuleStringMap.get(ext).toString());
|
||||||
if(bufferForExtension != null &&
|
if(bufferForExtension != null &&
|
||||||
!getOutputExtensions().contains(bufferForExtension.toString())) {
|
!getOutputExtensions().contains(bufferForExtension.toString())) {
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue