Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 313531 - xlc scanner discovery per file build output parser doesn't recognize automake format
Summary: xlc scanner discovery per file build output parser doesn't recognize automake...
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 5.0.2   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: 5.0.3   Edit
Assignee: Chris Recoskie CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-19 10:36 EDT by Chris Recoskie CLA
Modified: 2010-05-20 13:21 EDT (History)
0 users

See Also:


Attachments
patch (5.95 KB, patch)
2010-05-19 10:37 EDT, Chris Recoskie CLA
recoskie: iplog-
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Recoskie CLA 2010-05-19 10:36:33 EDT
Automake uses some weird shell script logic in its command lines to xlc.  This keeps the build output parser from recognizing valid compiler commands, because it doesn't see the command as the compiler will actually see it after the shell resolves all the shell syntax in the command.  Because of this, the source file being built is not recognized in the command, and thus the discovered info is not persisted.

The attached patch adds some rudimentary automake support by also looking for SOURCE= statements in the command line, and deriving the source file name from that.  If such statements are not found, it looks for the source file in the usual way.
Comment 1 Chris Recoskie CLA 2010-05-19 10:37:06 EDT
Created attachment 169118 [details]
patch
Comment 2 Chris Recoskie CLA 2010-05-20 13:21:55 EDT
Fixed on cdt_5_0 and HEAD.