Bug 341063 - Can't define PATH recursively in CDT preferences to locate make and other tools
Summary: Can't define PATH recursively in CDT preferences to locate make and other tools
Status: NEW
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 7.0.2   Edit
Hardware: PC Windows 7
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Jonah Graham CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-27 18:54 EDT by Sven Köhler CLA
Modified: 2020-09-04 15:22 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 Sven Köhler CLA 2011-03-27 18:54:22 EDT
Build Identifier: M20110210-1200

I'm using cygwin with CDT. If c:\cygwin\bin is not in the PATH before I start Eclipse, then Eclipse will fail to find it, even though I have defined

PATH = C:\cygwin\bin;${PATH}

in the preferences under C/C++->Build->Environment.

It would be nice, if Eclipse would use the path that is specified there to locate binaries like make, gcc, etc.

I think it makes sense. (I don't want to pollute by global PATH variable with cygwin's bin directory.)

Reproducible: Always
Comment 1 Andrew Gvozdev CLA 2011-03-27 22:31:48 EDT
(In reply to comment #0)
> Build Identifier: M20110210-1200
> I'm using cygwin with CDT. If c:\cygwin\bin is not in the PATH before I start
> Eclipse, then Eclipse will fail to find it, even though I have defined
> PATH = C:\cygwin\bin;${PATH}
It looks like the problem is in recursive definition which does not work properly. Try ${env_var:PATH} to get hold of path. I also would suggest CDT 8.0 which could make troubleshooting easier. CDT 8.0 prints value of $PATH in the console if "make" is not found.

> in the preferences under C/C++->Build->Environment.