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

Bug 337257

Summary: Make target: Files in referenced projects are not saved
Product: [Tools] CDT Reporter: Axel Mueller <aegges>
Component: cdt-buildAssignee: Andrew Gvozdev <angvoz.dev>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: normal    
Priority: P3 CC: cdtdoug
Version: 8.0   
Target Milestone: 8.0   
Hardware: PC   
OS: All   
Whiteboard:
Attachments:
Description Flags
save files in all referenced projects before build of make target angvoz.dev: iplog+

Description Axel Mueller CLA 2011-02-15 17:12:57 EST
Build Identifier: CDT 7.1

I have two Makefile projects for common library code and the actual application. The application project has the library project as a reference. When I build my application using a Make Target only the unsaved files from the application project are saved. Changes in the library project stay unsaved. This forces me to save them manually before actual build them. The preference option "Save automatically before build" is enabled.
A comparable problem for managed build was fixed in #170590

Reproducible: Always

Steps to Reproduce:
1. create two makefile projects
2. proj1 has proj2 as a reference
3. build proj1 (default "make all" build command or use a specific make target)
Comment 1 Axel Mueller CLA 2011-02-15 17:15:32 EST
Created attachment 189054 [details]
save files in all referenced projects before build of make target
Comment 2 Andrew Gvozdev CLA 2011-02-15 23:43:50 EST
Patch committed on the HEAD (8.0). Thanks again.
Comment 3 CDT Genie CLA 2011-02-16 00:21:46 EST
*** cdt cvs genie on behalf of agvozdev ***
bug 337257: Make target: Files in referenced projects are not saved
Patch from Axel Mueller

[*] TargetBuild.java 1.21 http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.cdt/all/org.eclipse.cdt.make.ui/src/org/eclipse/cdt/make/ui/TargetBuild.java?root=Tools_Project&r1=1.20&r2=1.21