mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
committed by
Andrew Heather
parent
1ffda6facb
commit
10a03ceba2
@ -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 "$@"
|
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
|
||||||
@ -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 )
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
|||||||
18
src/Allwmake-scan
Executable file
18
src/Allwmake-scan
Executable 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 "$@"
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
Reference in New Issue
Block a user