1
0
Fork 0
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:
Jeff Johnston 2013-04-17 13:43:59 -04:00
parent 90b38099d4
commit 53f251ec84

View file

@ -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());
}