Skip to content

Commit

Permalink
Update .env file to include smatch as a shadow compiler from r151031
Browse files Browse the repository at this point in the history
  • Loading branch information
citrus-it committed Jul 19, 2019
1 parent dfd98b9 commit 5975dd9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion etc/template-gcc4.env
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,11 @@ export SUNW_NO_UPDATE_NOTIFY='1'
export UT_NO_USAGE_TRACKING='1'
export BUILD_TOOLS='/opt'
export SPRO_ROOT='/opt/sunstudio12.1'
export GNUC_ROOT=/opt/gcc-4.4.4/
export ONLY_LINT_DEFS=-I${SPRO_ROOT}/sunstudio12.1/prod/include/lint
export ONBLD_BIN='/opt/onbld/bin'

export __GNUC=
export GNUC_ROOT=/opt/gcc-4.4.4/
export PRIMARY_CC=gcc4,/opt/gcc-4.4.4/bin/gcc,gnu
export PRIMARY_CCC=gcc4,/opt/gcc-4.4.4/bin/g++,gnu
export SHADOW_CCS=gcc7,/opt/gcc-7/bin/gcc,gnu
Expand Down
16 changes: 8 additions & 8 deletions etc/template-gcc7.env
Original file line number Diff line number Diff line change
Expand Up @@ -29,15 +29,15 @@ export MAKEFLAGS='k'
export SUNW_NO_UPDATE_NOTIFY='1'
export UT_NO_USAGE_TRACKING='1'
export BUILD_TOOLS='/opt'
export GNUC_ROOT=/opt/gcc-7/
export ONBLD_BIN='/opt/onbld/bin'

export __GNUC=
export PRIMARY_CC=gcc7,/opt/gcc-7/bin/gcc,gnu
export PRIMARY_CCC=gcc7,/opt/gcc-7/bin/g++,gnu
export SHADOW_CCS=gcc4,/opt/gcc-4.4.4/bin/gcc,gnu
export SHADOW_CCCS=gcc4,/opt/gcc-4.4.4/bin/g++,gnu
SMATCHBIN=$CODEMGR_WS/usr/src/tools/proto/root_$MACH-nd
SMATCHBIN+=/opt/onbld/bin/$MACH/smatch

#export SMATCHBIN=$CODEMGR_WS$PARENT_TOOLS_ROOT/opt/onbld/bin/$MACH/smatch
#SHADOW_CCS+=" smatch,$SMATCHBIN,smatch"
GNUC_ROOT="/opt/gcc-7/"
PRIMARY_CC="gcc7,/opt/gcc-7/bin/gcc,gnu"
PRIMARY_CCC="gcc7,/opt/gcc-7/bin/g++,gnu"
SHADOW_CCS="gcc4,/opt/gcc-4.4.4/bin/gcc,gnu smatch,$SMATCHBIN,smatch"
SHADOW_CCCS="gcc4,/opt/gcc-4.4.4/bin/g++,gnu"
export GNUC_ROOT PRIMARY_CC PRIMARY_CCC SHADOW_CCS SHADOW_CCCS

4 changes: 4 additions & 0 deletions setup
Original file line number Diff line number Diff line change
Expand Up @@ -172,6 +172,10 @@ install_env()
if [ $relnum -lt 151027 ]; then
sed -i 's/GNUC_ROOT/GCC_ROOT/g' "$wd/omnios.env"
fi
# Enable the shadow compiler from r151029
if [ $relnum -lt 151029 ]; then
sed -i '/CW_NO_SHADOW/d' "$wd/omnios.env"
fi
}

install_site()
Expand Down

0 comments on commit 5975dd9

Please sign in to comment.