STYLE: relocate Allwmake-scan to src/

- reduced clutter. Mostly only need to scan source tree.

- 00-dummy: use wmake/src/Allmake to get native (not cross-compiled)
  wmake toolchain binaries
This commit is contained in:
Mark Olesen 2019-06-28 09:55:25 +02:00 committed by Andrew Heather
parent 1ffda6facb
commit 10a03ceba2
3 changed files with 19 additions and 13 deletions

View File

@ -1,12 +0,0 @@
#!/bin/sh
# Allwmake with scan-build (clang)
c_compiler="$(command -v "$(wmake -show-c)")"
cxx_compiler="$(command -v "$(wmake -show-cxx)")"
set -x
scan-build --use-cc="$c_compiler" --use-c++="$cxx_compiler" \
./Allwmake "$@"
#------------------------------------------------------------------------------

View File

@ -3,7 +3,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Can never be too certain ...
# Compile tools for wmake
( cd "${WM_DIR:-${WM_PROJECT_DIR}/wmake}/src" && make )
( cd "${WM_DIR:-${WM_PROJECT_DIR}/wmake}/src" && ./Allmake )
#------------------------------------------------------------------------------

18
src/Allwmake-scan Executable file
View File

@ -0,0 +1,18 @@
#!/bin/sh
# Allwmake with scan-build (clang)
command -v scan-build > /dev/null || {
exec 1>&2
echo "No scan-build found, stopping"
echo
exit 2
}
comp_cc="$(command -v "$(wmake -show-c)")"
comp_cxx="$(command -v "$(wmake -show-cxx)")"
set -x
scan-build --use-cc="$comp_cc" --use-c++="$comp_cxx" \
./Allwmake "$@"
#------------------------------------------------------------------------------