Commit 834efe6d authored by Mark Olesen's avatar Mark Olesen
Browse files

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.
parent 69cff3b3
......@@ -211,6 +211,16 @@ useGcc()
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
useGccFlag()
{
......
......@@ -73,7 +73,7 @@ do
case "$1" in
'') ;; # Ignore empty
-h | -help) usage ;;
-gcc) useGcc ;;
-gcc) useGccWmake ;;
lib|libso)
targetType="$1"
......
......@@ -96,7 +96,7 @@ do
case "$1" in
'') ;; # Ignore empty
-h | -help) usage ;;
-gcc) useGcc ;;
-gcc) useGccWmake ;;
-force) optForce=true ;;
-cmake)
......
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