Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 360155 - Scanner Discovery should allow environment or build variables
Summary: Scanner Discovery should allow environment or build variables
Status: RESOLVED INVALID
Alias: None
Product: CDT
Classification: Tools
Component: cdt-build (show other bugs)
Version: 8.0   Edit
Hardware: PC Linux
: P3 normal with 2 votes (vote)
Target Milestone: ---   Edit
Assignee: cdt-build-inbox@eclipse.org CLA
QA Contact: Andrew Gvozdev CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-06 15:05 EDT by Gavin S CLA
Modified: 2017-07-30 15:50 EDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gavin S CLA 2011-10-06 15:05:45 EDT
Build Identifier: 20110615-0604

The Scanner Discovery command line does not allow the use of build, or environment variables. Using ~ to get the home directory of the user is also not available.

Reproducible: Always

Steps to Reproduce:
1.Start project
2.Try setting the Discovery Command to use $HOME/, ${env_var:HOME}/, or ~/
3.Fail
Comment 1 Andrew Gvozdev CLA 2011-10-06 15:40:34 EDT
Do you need variable to point to the compiler or to the specs file?
Comment 2 Gavin S CLA 2011-10-06 16:32:24 EDT
(In reply to comment #1)
> Do you need variable to point to the compiler or to the specs file?

For the compiler.

This functionality is useful for a shared project where individuals may have things installed in a common sub-folder of some definable environment variable such as $HOME.
Comment 3 ewald CLA 2012-01-16 13:41:24 EST
As I need to use different and occasionally changing compilers in my various projects and targets I would like to set prefix and suffix for the compiler. So once I need a different version I simply would change the suffix/prefix instead of nearly 100 projects. 

Example win32:

prefix: i686-gnu-cygwin-
suffix: -4.3.2

${prefix}gnu${suffix}

==> i686-gnu-cygwin-gcc-4.3.2 

And removing the two variables for linux builds enables the standard compiler.
Comment 4 Nathan Ridge CLA 2017-03-29 21:31:30 EDT
(In reply to Gavin S from comment #0)
> 2.Try setting the Discovery Command to use $HOME/, ${env_var:HOME}/, or ~/

Where in the UI are you setting this "Discovery Command"?
Comment 5 Nathan Ridge CLA 2017-07-30 15:50:59 EDT
Closing as there has been no response to comment 4.