Commit 4b8fabaa authored by Mark Olesen's avatar Mark Olesen Committed by Andrew Heather
Browse files

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
parent 5bd7c4b5
...@@ -3,7 +3,7 @@ cd ${0%/*} || exit 1 # Run from this directory ...@@ -3,7 +3,7 @@ cd ${0%/*} || exit 1 # Run from this directory
# Can never be too certain ... # Can never be too certain ...
# Compile tools for wmake # Compile tools for wmake
( cd "${WM_DIR:-${WM_PROJECT_DIR}/wmake}/src" && make ) ( cd "${WM_DIR:-${WM_PROJECT_DIR}/wmake}/src" && ./Allmake )
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
......
#!/bin/sh #!/bin/sh
# Allwmake with scan-build (clang) # Allwmake with scan-build (clang)
c_compiler="$(command -v "$(wmake -show-c)")" command -v scan-build > /dev/null || {
cxx_compiler="$(command -v "$(wmake -show-cxx)")" exec 1>&2
echo "No scan-build found, stopping"
echo
exit 2
}
set -x comp_cc="$(command -v "$(wmake -show-c)")"
comp_cxx="$(command -v "$(wmake -show-cxx)")"
scan-build --use-cc="$c_compiler" --use-c++="$cxx_compiler" \ set -x
scan-build --use-cc="$comp_cc" --use-c++="$comp_cxx" \
./Allwmake "$@" ./Allwmake "$@"
#------------------------------------------------------------------------------ #------------------------------------------------------------------------------
Markdown is supported
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