mirror of
https://develop.openfoam.com/Development/ThirdParty-common.git
synced 2025-12-08 06:57:50 +00:00
COMP: handle forced use of gcc/g++ for wmake components
- does not change WM_OPTIONS or output directories, so that the target directories are correct.
This commit is contained in:
@ -211,6 +211,16 @@ useGcc()
|
|||||||
export CXX=g++
|
export CXX=g++
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
# Force use of system gcc/g++ (wmake compilation) without changing the
|
||||||
|
# WM_OPTIONS or output directories
|
||||||
|
useGccWmake()
|
||||||
|
{
|
||||||
|
export WM_COMPILER=Gcc
|
||||||
|
export WM_COMPILER_TYPE=system
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
# Scan arguments for a '-gcc' option, forcing gcc/g++ when found
|
# Scan arguments for a '-gcc' option, forcing gcc/g++ when found
|
||||||
useGccFlag()
|
useGccFlag()
|
||||||
{
|
{
|
||||||
|
|||||||
@ -73,7 +73,7 @@ do
|
|||||||
case "$1" in
|
case "$1" in
|
||||||
'') ;; # Ignore empty
|
'') ;; # Ignore empty
|
||||||
-h | -help) usage ;;
|
-h | -help) usage ;;
|
||||||
-gcc) useGcc ;;
|
-gcc) useGccWmake ;;
|
||||||
|
|
||||||
lib|libso)
|
lib|libso)
|
||||||
targetType="$1"
|
targetType="$1"
|
||||||
|
|||||||
Reference in New Issue
Block a user