mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
- reduced clutter. Mostly only need to scan source tree. - 00-dummy: use wmake/src/Allmake to get native (not cross-compiled) wmake toolchain binaries
19 lines
416 B
Bash
Executable File
19 lines
416 B
Bash
Executable File
#!/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 "$@"
|
|
|
|
#------------------------------------------------------------------------------
|