Skip to content
Snippets Groups Projects
Commit 7bf25dbd authored by Mark OLESEN's avatar Mark OLESEN
Browse files

ENH: add 'Scan' WM_COMPILE_OPTION (clang only)

- backend settings for scan-build
parent 4ecdb251
Branches
Tags
No related merge requests found
#!/bin/sh
# Allwmake with scan-build (clang)
c_compiler="$(command -v $WM_CC)"
cxx_compiler"$(command -v $WM_CXX)"
set -x
scan-build --use-cc="$c_compiler" --use-c++="$cxx_compiler" \
./Allwmake "$@"
#------------------------------------------------------------------------------
# Static analyzer with clang and Opt.
# Call top-level Allwmake with 'scan-build' and corresponding compiler
include $(DEFAULT_RULES)/c++Opt
cxx_compiler := $(shell which clang++)
CC := $(shell echo "$(cxx_compiler)" | sed -e 's@/bin/[^/]*@/libexec/c++-analyzer@') -std=c++11 -m64
# Static analyzer with clang and Opt.
# Call top-level Allwmake with 'scan-build' and corresponding compiler
include $(DEFAULT_RULES)/cOpt
c_compiler := $(shell which clang)
cc := $(shell echo "$(c_compiler)" | sed -e 's@/bin/[^/]*@/libexec/ccc-analyzer@') -m64
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment