Print this page
cw: give cw(1onbld) a new interface allowing for multiple arbitrary shadows

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/env/illumos.sh
          +++ new/usr/src/tools/env/illumos.sh
↓ open down ↓ 188 lines elided ↑ open up ↑
 189  189  # variables allows you to get the compilers and onbld files locally.
 190  190  # Set BUILD_TOOLS to pull everything from one location.
 191  191  # Alternately, you can set ONBLD_TOOLS to where you keep the contents of
 192  192  # SUNWonbld and SPRO_ROOT to where you keep the compilers.  SPRO_VROOT
 193  193  # exists to make it easier to test new versions of the compiler.
 194  194  export BUILD_TOOLS='/opt'
 195  195  #export ONBLD_TOOLS='/opt/onbld'
 196  196  export SPRO_ROOT='/opt/SUNWspro'
 197  197  export SPRO_VROOT="$SPRO_ROOT"
 198  198  
 199      -# Disable shadow compilation by default.
 200      -export CW_NO_SHADOW='1'
      199 +# Compilers maybe specified using the following variables:
      200 +# PRIMARY_CC    - primary C compiler
      201 +# PRIMARY_CCC   - primary C++ compiler
      202 +#
      203 +# SHADOW_CCS    - list of shadow C compilers
      204 +# SHADOW_CCCS   - list of shadow C++ compilers
      205 +#
      206 +# Each entry has the form <name>,<path to binary>,<style> where name is a
      207 +# free-form name (possibly used in the makefiles to guard options), path is
      208 +# the path to the executable.  style is the 'style' of command line taken by
      209 +# the compiler, currently either gnu/gcc or sun/cc (also used by Makefiles to
      210 +# guard options).
      211 +#
      212 +# __SUNC and __GNUC must still be set to reflect the style of the primary
      213 +# compiler (and to influence the default primary, otherwise)
      214 +#
      215 +# for example:
      216 +# export PRIMARY_CC=gcc4,/opt/gcc/4.4.4/bin/gcc,gnu
      217 +# export PRIMARY_CCC=gcc4,/opt/gcc/4.4.4/bin/g++,gnu
      218 +# export SHADOW_CCS=studio12,/opt/SUNWspro/bin/cc,sun
      219 +# export SHADOW_CCCS=studio12,/opt/SUNWspro/bin/CC,sun
      220 +#
      221 +# There can be several space-separated entries in SHADOW_* to run multiple
      222 +# shadow compilers.
 201  223  
 202  224  # This goes along with lint - it is a series of the form "A [y|n]" which
 203  225  # means "go to directory A and run 'make lint'" Then mail me (y) the
 204  226  # difference in the lint output. 'y' should only be used if the area you're
 205  227  # linting is actually lint clean or you'll get lots of mail.
 206  228  # You shouldn't need to change this though.
 207  229  #export LINTDIRS="$SRC y"
 208  230  
 209  231  # Set this flag to 'n' to disable the use of 'checkpaths'.  The default,
 210  232  # if the 'N' option is not specified, is to run this test.
↓ open down ↓ 16 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX