Print this page
10063 basic support for smatch
10153 checkpaths shouldn't check packaging exceptions

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/env/illumos.sh
          +++ new/usr/src/tools/env/illumos.sh
↓ open down ↓ 73 lines elided ↑ open up ↑
  74   74  # export SHADOW_CCCS=studio12,/opt/SUNWspro/bin/CC,sun
  75   75  #
  76   76  # There can be several space-separated entries in SHADOW_* to run multiple
  77   77  # shadow compilers.
  78   78  #
  79   79  # To disable shadow compilation, unset SHADOW_* or set them to the empty string.
  80   80  #
  81   81  export SHADOW_CCS=gcc7,/usr/gcc/7/bin/gcc,gnu
  82   82  export SHADOW_CCCS=gcc7,/usr/gcc/7/bin/g++,gnu
  83   83  
       84 +# uncomment to enable smatch
       85 +#export ENABLE_SMATCH=1
       86 +
  84   87  # Comment this out to disable support for SMB printing, i.e. if you
  85   88  # don't want to bother providing the CUPS headers this needs.
  86   89  export ENABLE_SMB_PRINTING=
  87   90  
  88   91  # If your distro uses certain versions of Perl, make sure either Makefile.master
  89   92  # contains your new defaults OR your .env file sets them.
  90   93  # These are how you would override for building on OmniOS r151028, for example.
  91   94  #export PERL_VERSION=5.28
  92   95  #export PERL_ARCH=i86pc-solaris-thread-multi-64int
  93   96  #export PERL_PKGVERS=
↓ open down ↓ 172 lines elided ↑ open up ↑
 266  269  # This goes along with lint - it is a series of the form "A [y|n]" which
 267  270  # means "go to directory A and run 'make lint'" Then mail me (y) the
 268  271  # difference in the lint output. 'y' should only be used if the area you're
 269  272  # linting is actually lint clean or you'll get lots of mail.
 270  273  # You shouldn't need to change this though.
 271  274  #export LINTDIRS="$SRC y"
 272  275  
 273  276  # Set this flag to 'n' to disable the use of 'checkpaths'.  The default,
 274  277  # if the 'N' option is not specified, is to run this test.
 275  278  #CHECK_PATHS='y'
      279 +
      280 +if [[ "$ENABLE_SMATCH" = "1" ]]; then
      281 +        SMATCHBIN=$CODEMGR_WS/usr/src/tools/proto/root_$MACH-nd/opt/onbld/bin/$MACH/smatch
      282 +        export SHADOW_CCS="$SHADOW_CCS smatch,$SMATCHBIN,smatch"
      283 +fi
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX