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

Bug 340483

Summary: path variable is not regared when running "build selected"
Product: [Tools] CDT Reporter: ewald <eclipse>
Component: cdt-buildAssignee: cdt-build-inbox <cdt-build-inbox>
Status: RESOLVED FIXED QA Contact: Andrew Gvozdev <angvoz.dev>
Severity: minor    
Priority: P3 CC: cdtdoug, malaperle
Version: 8.0   
Target Milestone: 8.1.0   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description ewald CLA 2011-03-19 05:08:21 EDT
Build Identifier: CDT 8.0.0 weekly builds of 2011-02

I need to use a special g++ version at a non-standard path. For that reason the c++ build environment variable contains that location like:

PATH ==>
${workspace_loc}/bin/ups-win32/mingw;${workspace_loc}/bin/ups-win32/gcc-4.3/bin;${PATH};${workspace_loc}/bin/ups-win32

This works fine in regular builds. But when running a "selected build" on a single file the g++ executable is not found. Obviously the path environment is not extended as requested.

As a workaround I extend the system path which works but can't be done on a project basis.

Reproducible: Always

Steps to Reproduce:
1. add non-standard path to environment variable in project settings
2. build project ==> works
3. run "build selected" from context menu on c++ file
4. non-standard g++-4.3 is not found
Comment 1 Andrew Gvozdev CLA 2012-03-13 14:01:08 EDT
It should get working after fix for bug 364733.