mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-12-28 03:37:59 +00:00
ENH: armclang: new compiler type. Fixes #779.
This commit is contained in:
16
wmake/rules/linuxARM64Arm/c
Normal file
16
wmake/rules/linuxARM64Arm/c
Normal file
@ -0,0 +1,16 @@
|
||||
SUFFIXES += .c
|
||||
|
||||
cWARN = -Wall
|
||||
|
||||
cc = armclang
|
||||
|
||||
include $(DEFAULT_RULES)/c$(WM_COMPILE_OPTION)
|
||||
|
||||
cFLAGS = $(GFLAGS) $(cWARN) $(cOPT) $(cDBUG) $(LIB_HEADER_DIRS) -fPIC
|
||||
|
||||
ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@
|
||||
|
||||
LINK_LIBS = $(cDBUG)
|
||||
|
||||
LINKLIBSO = $(cc) -shared
|
||||
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
|
||||
30
wmake/rules/linuxARM64Arm/c++
Normal file
30
wmake/rules/linuxARM64Arm/c++
Normal file
@ -0,0 +1,30 @@
|
||||
SUFFIXES += .C .cc .cpp .cxx
|
||||
|
||||
c++WARN = \
|
||||
-Wall -Wextra -Wold-style-cast \
|
||||
-Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof \
|
||||
-Wno-undefined-var-template \
|
||||
-Wno-unknown-warning-option
|
||||
|
||||
# Suppress some warnings for flex++ and CGAL
|
||||
c++LESSWARN = \
|
||||
-Wno-old-style-cast -Wno-unused-local-typedefs \
|
||||
-Wno-tautological-undefined-compare -Wno-shift-negative-value
|
||||
|
||||
CC = armclang++ -std=c++11
|
||||
|
||||
include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION)
|
||||
|
||||
ptFLAGS = -DNoRepository -ftemplate-depth-100
|
||||
|
||||
c++FLAGS = $(GFLAGS) $(c++WARN) $(c++OPT) $(c++DBUG) $(ptFLAGS) $(LIB_HEADER_DIRS) -fPIC
|
||||
|
||||
Ctoo = $(WM_SCHEDULER) $(CC) $(c++FLAGS) -c $< -o $@
|
||||
cxxtoo = $(Ctoo)
|
||||
cctoo = $(Ctoo)
|
||||
cpptoo = $(Ctoo)
|
||||
|
||||
LINK_LIBS = $(c++DBUG)
|
||||
|
||||
LINKLIBSO = $(CC) $(c++FLAGS) -shared
|
||||
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed
|
||||
2
wmake/rules/linuxARM64Arm/c++Debug
Normal file
2
wmake/rules/linuxARM64Arm/c++Debug
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -g -DFULLDEBUG
|
||||
c++OPT = -O0
|
||||
2
wmake/rules/linuxARM64Arm/c++Opt
Normal file
2
wmake/rules/linuxARM64Arm/c++Opt
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG =
|
||||
c++OPT = -mcpu=thunderx2t99 -ffp-contract=fast -ffast-math -O3 -funsafe-math-optimizations
|
||||
2
wmake/rules/linuxARM64Arm/c++Prof
Normal file
2
wmake/rules/linuxARM64Arm/c++Prof
Normal file
@ -0,0 +1,2 @@
|
||||
c++DBUG = -pg
|
||||
c++OPT = -O2
|
||||
2
wmake/rules/linuxARM64Arm/cDebug
Normal file
2
wmake/rules/linuxARM64Arm/cDebug
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -g -DFULLDEBUG
|
||||
cOPT = -O0
|
||||
2
wmake/rules/linuxARM64Arm/cOpt
Normal file
2
wmake/rules/linuxARM64Arm/cOpt
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -mcpu=thunderx2t99 -ffp-contract=fast -ffast-math -O3
|
||||
2
wmake/rules/linuxARM64Arm/cProf
Normal file
2
wmake/rules/linuxARM64Arm/cProf
Normal file
@ -0,0 +1,2 @@
|
||||
cDBUG = -pg
|
||||
cOPT = -O2
|
||||
9
wmake/rules/linuxARM64Arm/general
Normal file
9
wmake/rules/linuxARM64Arm/general
Normal file
@ -0,0 +1,9 @@
|
||||
CPP = cpp -traditional-cpp $(GFLAGS)
|
||||
|
||||
PROJECT_LIBS = -l$(WM_PROJECT) -ldl
|
||||
|
||||
include $(GENERAL_RULES)/standard
|
||||
|
||||
include $(DEFAULT_RULES)/openmp
|
||||
include $(DEFAULT_RULES)/c
|
||||
include $(DEFAULT_RULES)/c++
|
||||
8
wmake/rules/linuxARM64Arm/openmp
Normal file
8
wmake/rules/linuxARM64Arm/openmp
Normal file
@ -0,0 +1,8 @@
|
||||
# Flags for compiling/linking openmp
|
||||
# The USE_OMP is for OpenFOAM-specific use (general use is _OPENMP)
|
||||
# -
|
||||
# Clang provides 'omp' and a link for 'gomp'.
|
||||
# With 'gomp' we can use system libs.
|
||||
|
||||
COMP_OPENMP = -DUSE_OMP -fopenmp
|
||||
LINK_OPENMP = -lgomp
|
||||
Reference in New Issue
Block a user