mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
- for compilers such as gcc and clang, may have several different
variants installed on the computer. Use WM_COMPILER_CONTROL to
specify the preferred variant.
Eg,
WM_COMPILER=Gcc
WM_COMPILER_CONTROL="version=8"
will compile with "gcc-8" and "g++-8"
Good practice would be to tag output directory names with the
version too. Eg
WM_COMPILER=Clang110
WM_COMPILER_CONTROL="version=11.0"
STYLE: modify message for change of gcc -> clang (darwin)
22 lines
608 B
Plaintext
22 lines
608 B
Plaintext
#------------------------------------------------------------------------------
|
|
# PGI Compilers are defunct - now in NVIDIA HPC SDK (2021)
|
|
#------------------------------------------------------------------------------
|
|
SUFFIXES += .C .cc .cpp .cxx
|
|
|
|
CC = pgc++$(COMPILER_VERSION) -std=c++11
|
|
|
|
c++ARCH =
|
|
c++DBUG =
|
|
c++OPT = -O2
|
|
ptFLAGS = -DNoRepository
|
|
|
|
# - Standard warnings
|
|
# - Less restrictive warnings (may be needed for flex++, CGAL, etc.)
|
|
|
|
c++WARN = \
|
|
$(FOAM_EXTRA_CXXFLAGS)
|
|
|
|
c++LESSWARN =
|
|
|
|
#------------------------------------------------------------------------------
|