Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 313531

Summary: xlc scanner discovery per file build output parser doesn't recognize automake format
Product: [Tools] CDT Reporter: Chris Recoskie <recoskie>
Component: cdt-buildAssignee: Chris Recoskie <recoskie>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3    
Version: 5.0.2   
Target Milestone: 5.0.3   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch recoskie: iplog-

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.