Bug 105197 - isOptionEnabled never called
Summary: isOptionEnabled never called
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 3.0 RC3   Edit
Assignee: Chris Recoskie CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2005-07-26 13:52 EDT by Neil Rickards CLA
Modified: 2008-06-19 13:20 EDT (History)
4 users (show)

See Also:


Attachments
Suggested patch (922 bytes, patch)
2005-07-26 13:54 EDT, Neil Rickards CLA
bjorn.freeman-benson: iplog+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Neil Rickards CLA 2005-07-26 13:52:28 EDT
This is a bug in the new dynamically option enablement call-back (Bug 95762)

The code to call isOptionEnabled is commented out.  This means that options are 
always enabled.

isOptionVisible and isOptionUsedInCommandLine appear to be called as expected.
Comment 1 Neil Rickards CLA 2005-07-26 13:54:01 EDT
Created attachment 25313 [details]
Suggested patch

This patch simply uncomments the code.	Note - it's likely I misunderstand the
reason for this block being commented.
Comment 2 Chris Recoskie CLA 2005-07-26 13:57:13 EDT
This somehow happened when merging in Symbian's patch for shared tool options 
into my previous patch to provide the callback.  I think this was inadvertant.

Highly recommend we fix this for 3.0, as otherwise the feature just doesn't 
work.
Comment 3 Mikhail Sennikovsky CLA 2005-07-27 05:03:40 EDT
I don't know any reason why the option anablemet code was comented, so I agree
with the proposed patch.
I agree we should fix this for the 3.0.
Comment 4 Chris Recoskie CLA 2005-07-27 09:55:51 EDT
I am going to go ahead and apply this so that it gets into today's build.
Comment 5 Leo Treggiari CLA 2005-07-27 10:14:23 EDT
Lars and/or Bala,

Please run any ToolChain option tests that you have after this patch is 
applied.  The can't remember why I commented out that code.  It could be that I 
commented it out while making the IOptionHolder changes and forgot to go back 
to it, or it could be that I anticipated a problem and forgot to go back to 
address it.  The ToolChain options is one area that I coud have anticipated a 
problem, since those had just been added.

Thanks,
Leo
Comment 6 Chris Recoskie CLA 2005-07-27 10:22:45 EDT
I ran all the core tests and this doesn't seem to mess anything up.

Although, even without the change, there are a bunch of tests failing.  I 
think it's just a matter of the benchmarks requiring an update.  Will follow 
up on that on cdt-test-dev
Comment 7 Leo Treggiari CLA 2005-07-27 10:31:21 EDT
Chris,

Those tests weren't failing the last time I ran them.  I would guess that they 
have to do with "content-type" changes (e.g. uppercase C and S were added to 
the C++ and ASM content types).  That would change the source.mk file and cause 
the benchmarks to need to be updated.

Thanks,
Leo
Comment 8 Chris Recoskie CLA 2005-07-27 11:01:18 EDT
Applied to HEAD