Bug #18977 2013-04-22 17:21

gigawatt

"Virtual Targets" doesn't recompile w/ different DEFINES

When rebuilding/compiling a virtual target, targets with different #define build values (under build options) are linked with the wrong object files.

Steps to recreate:

Make a project that includes at least two targets, each target with different #define parameters in the build options and with different output executable names.

Add a code chunk that is dependent on the different #define values. For example: http://ideone.com/y1fmy6

Compile/Rebuild the virtual target.

When you run the different output executables, they will behave identically. The build log shows the sources being compiled once (with the first target's #defines), then simply linking the pre-compiled objects to different output executables.

Category
Application::WrongBehaviour
Group
Platform:All
Status
Open
Close date
 
Assigned to