Bug 561194 - incremental build of managed project with parallel build on and stop on first error reports succesfull build when errors exist
Summary: incremental build of managed project with parallel build on and stop on first...
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build-managed (show other bugs)
Version: 9.9.0   Edit
Hardware: PC Windows 10
: P3 normal with 1 vote (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-17 09:51 EDT by Tad Adams CLA
Modified: 2020-03-17 09:51 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tad Adams CLA 2020-03-17 09:51:11 EDT
Steps:
1) File->New Project->C/C++->C/C++ Project
2) Select C++ Managed Build
3) Select Hello World C++ Project, name the project HelloWorld
4) Click finish
5) Right click project->properties-> click C/C++ build section, select the behaviour tab
6) Select Parallel build, and deselect stop on first error, make sure incremental build is checked (default)
7) Apply and close
8) Modify SimpleHelloWorld.cpp to remote the trailing semi-colon
9) Build the project
10) Get an error
11) Build the project again not making any changes, the build reports it succeeded

Expected Behaviour:
The second build should also product an error

Actual Behaviour:
The second build reports it succeeded


Comments:
The managed build is keeping track of deltas between builds to implement incremental builds. On an incremental build if a resource has not changed it does not build the resource. In this case the resource was not built becaues of errors the first time, likely the incremental build process should track the success of the buliding of each resource, and if not succesfull (perhaps no .o file), then that information should be added to the delta and leveraged in the incremental build phase.