Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 314460 - Build Selected (configuration) possibly not sending adequate set of arguments
Summary: Build Selected (configuration) possibly not sending adequate set of arguments
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-26 09:38 EDT by John Cortell CLA
Modified: 2020-09-04 15:19 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Cortell CLA 2010-05-26 09:38:04 EDT
While working on bug 309126, it was noticed that the Map of arguments set to BuildManager for a build is suspiciously thin when the build is invoked by right clicking on the project and selecting

   Build Configurations > Build Selected...

and choosing a particular configuration. James thought this may be a bug and so I've filed this report. See second paragraph in

   https://bugs.eclipse.org/bugs/show_bug.cgi?id=309126#c18

I set a breakpoint in BuildManager.basicBuild(int, IncrementalProjectBuilder, Map, MultiStatus, IProgressMonitor) and noticed the following arg(Map) contents in each scenario. The "Build Project" scenario is simply right clicking on the project and hitting "Build Project.

=== args contents for Build Project ===
org.eclipse.cdt.make.core.enableCleanBuild=true
org.eclipse.cdt.make.core.append_environment=true
org.eclipse.cdt.make.core.contents=org.eclipse.cdt.make.core.activeConfigSettings
?name?=
org.eclipse.cdt.make.core.buildLocation=${workspace_loc:/helloworld/Debug}
org.eclipse.cdt.make.core.enableAutoBuild=false
org.eclipse.cdt.make.core.useDefaultBuildCmd=true
org.eclipse.cdt.make.core.buildArguments=
org.eclipse.cdt.make.core.buildCommand=make
org.eclipse.cdt.make.core.enableFullBuild=true
org.eclipse.cdt.make.core.stopOnError=true

=== args contents for Build Selected (configuration) ===
org.eclipse.cdt.make.core.configurationIds=cdt.managedbuild.config.gnu.mingw.exe.debug.1107845113|
org.eclipse.cdt.make.core.contents=org.eclipse.cdt.make.core.configurationIds