From 08dfe0822710fa81a47e8be56111497b8c21128e Mon Sep 17 00:00:00 2001 From: Gorgone Date: Sat, 19 Sep 2020 20:44:13 +0200 Subject: [PATCH] Update _cmd_build add codeanalyse option --- support/functions/_cmd_build | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/support/functions/_cmd_build b/support/functions/_cmd_build index fd01aff..6247796 100644 --- a/support/functions/_cmd_build +++ b/support/functions/_cmd_build @@ -37,6 +37,9 @@ _cmd_build(){ [ "$e" == "$d" ] && USE_vars[${e:0: -2}]=; done + if [ $e == "USE_DIAG=1" ]; then + codecheck=$(command -v scan-build) + fi done cd "$svndir" @@ -185,7 +188,7 @@ printf "$y_l\n | set : ${cdtag}$w_l" _nl USESTRING=${USE_vars[@]} EXTRA_USE=$extra_use - make -j"$cpus" $_verbose \ + $codecheck make -j"$cpus" $_verbose \ "CONF_DIR=$CONFDIR" \ "OSCAM_BIN=$bdir/$oscam_name" \ "CC_OPTS=$co $cc_opts $extra_cc" \