This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 176026 - Preferred SunStudio toolchain should be settable using environment variable
Summary: Preferred SunStudio toolchain should be settable using environment variable
Status: RESOLVED FIXED
Alias: None
Product: cnd
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Alexander Simon
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-04 22:31 UTC by Thomas Preisler
Modified: 2009-11-08 09:36 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Preisler 2009-11-04 22:31:34 UTC
The Sun Studio IDE script will provide a new environment variable pointing to the location of the compilers and tools distributed with that IDE.

name: spro.bin

meaning: spro.bin will be the absolute path to the folder where the Sun Studio compilers and other Sun Studio tools are accessible. Please note the spro.bin folder may only contain 
links to the binaries and not the actual files themselves. The C++ compiler can for instance be found here:
  $(spro.bin)/CC

CND's toolchain discovery logic should do the following:
1) check whether spro.bin is set and points to a valid directory
2) check whether spro.bin contains a valid Sun Studio toolchain (SS12, SS12.1, ExpressAten, SS12.2, ...) and do the following if it does:
  a) install this toolchain before any other toolschain of same name found otherwise
  b) set this toolchain as the default *SunStudio* toolchain.
3) if spro.bin is not set or doesn't point to a valid compiler set, CND toolchain discovery logic should do what it does today and link 'SunStudio' toolchain to the 'best' SS set.

This will ensure that 'SunStudio' toolchain points to the ExpressAten compilers in ExpressAten IDE and 'SunStudio' toolchain points to the Aten compilers in Aten IDE even you have 
all the toolchains in your paths.
Comment 1 Quality Engineering 2009-11-06 09:58:33 UTC
Integrated into 'main-golden', will be available in build *200911060201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/e503641cfc9f
User: Alexander Simon <alexvsimon@netbeans.org>
Log: fixing IZ#176026 Preferred SunStudio toolchain should be settable using environment variable
Comment 2 Alexander Simon 2009-11-08 09:36:35 UTC
fixed