瀏覽代碼

use parameters instead of pre-defined values

Steffen Jaeckel 8 年之前
父節點
當前提交
315d03ccd5
共有 1 個文件被更改,包括 1 次插入3 次删除
  1. 1 3
      scan_build.sh

+ 1 - 3
scan_build.sh

@@ -14,6 +14,4 @@ make clean > /dev/null
 scan_build=$(which scan-build)
 [ -z "$scan_build" ] && scan_build=$(find /usr/bin/ -name 'scan-build-*' | sort -nr | head -n1) || true
 [ -z "$scan_build" ] && { echo "couldn't find clang scan-build"; exit 1; } || echo "run $scan_build"
-export CFLAGS="-DUSE_LTM -DLTM_DESC -I/usr/include"
-export EXTRALIBS="-ltommath"
-$scan_build --status-bugs make -f makefile.unix all CFLAGS="$CFLAGS" EXTRALIBS="$EXTRALIBS"
+$scan_build --status-bugs make -f makefile.unix all CFLAGS="$2" EXTRALIBS="$5"