mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 405904 - Gprof linker options not activated until 2nd build
- Add a check after calling applicability calculator to see if the option passed in isElementExtension() in which case look for it's id as if it is a superclass id. Change-Id: Id9fb007a138dfc4fc056c465bbb1842bba4fe4ba Reviewed-on: https://git.eclipse.org/r/11991 Reviewed-by: Jeff Johnston <jjohnstn@redhat.com> IP-Clean: Jeff Johnston <jjohnstn@redhat.com> Tested-by: Jeff Johnston <jjohnstn@redhat.com>
This commit is contained in:
parent
90b38099d4
commit
53f251ec84
1 changed files with 5 additions and 0 deletions
|
@ -2585,6 +2585,11 @@ public class Tool extends HoldsOptions implements ITool, IOptionCategory, IMatch
|
|||
!(applicabilityCalculator instanceof BooleanExpressionApplicabilityCalculator)) {
|
||||
if (option.getSuperClass() != null)
|
||||
option = getOptionBySuperClassId(option.getSuperClass().getId());
|
||||
// bug #405904 - if the option is an extension element (first time we build),
|
||||
// use the option id as a superclass id, otherwise we won't find the option we may have just
|
||||
// set and will end up with the default setting
|
||||
else if (option.isExtensionElement())
|
||||
option = getOptionBySuperClassId(option.getId());
|
||||
else
|
||||
option = getOptionById(option.getId());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue