mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
CONFIG: permit an empty value for WM_COMPILE_OPTION, WM_COMPILER_TYPE
- an empty WM_COMPILE_OPTION is treated internally (in make rules) like "Opt" - an empty WM_COMPILER_TYPE is treated like "system" (system compiler)
This commit is contained in:
@ -21,7 +21,6 @@
|
||||
#
|
||||
#------------------------------------------------------------------------------
|
||||
setenv WM_ARCH `uname -s` # System name
|
||||
if (! $?WM_COMPILE_OPTION ) setenv WM_COMPILE_OPTION Opt # Default: Optimize
|
||||
|
||||
set archOption=64
|
||||
if ($?WM_ARCH_OPTION) then
|
||||
@ -31,6 +30,7 @@ endif
|
||||
unsetenv WM_ARCH_OPTION # Compiling 32-bit on 64-bit system
|
||||
setenv WM_COMPILER_ARCH # Host compiler type (when different than target)
|
||||
setenv WM_COMPILER_LIB_ARCH # Additional ending for lib directories
|
||||
if (! $?WM_COMPILE_OPTION ) setenv WM_COMPILE_OPTION
|
||||
|
||||
# Adjust according to system and architecture
|
||||
switch ($WM_ARCH)
|
||||
@ -299,9 +299,10 @@ CLANG_NOT_FOUND
|
||||
endif
|
||||
breaksw
|
||||
|
||||
case -*:
|
||||
case system-*:
|
||||
case ThirdParty-*:
|
||||
# Using system compiler or other ThirdParty compiler
|
||||
# Using empty (system), system compiler or other ThirdParty compiler
|
||||
breaksw
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user