Skip to content
Snippets Groups Projects
Commit 047f526e authored by Mark OLESEN's avatar Mark OLESEN
Browse files

COMP: adjust ARM compilation flags (#1225)

- with -mcpu=native for automatic detection and -armpl for linking in
  the performance libraries
parent 13c187b2
No related branches found
No related tags found
No related merge requests found
SUFFIXES += .c SUFFIXES += .c
cc = armclang cc = armclang -mpcu=native
cWARN = -Wall cWARN = -Wall
...@@ -12,5 +12,5 @@ ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@ ...@@ -12,5 +12,5 @@ ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@
LINK_LIBS = $(cDBUG) LINK_LIBS = $(cDBUG)
LINKLIBSO = $(cc) -shared LINKLIBSO = $(cc) -shared -armpl
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs -armpl
include $(GENERAL_RULES)/Clang/c++ include $(GENERAL_RULES)/Clang/c++
CC = armclang++ -std=c++11 CC = armclang++ -std=c++11 -mcpu=native
include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION) include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION)
...@@ -13,5 +13,5 @@ cpptoo = $(Ctoo) ...@@ -13,5 +13,5 @@ cpptoo = $(Ctoo)
LINK_LIBS = $(c++DBUG) LINK_LIBS = $(c++DBUG)
LINKLIBSO = $(CC) $(c++FLAGS) -shared LINKLIBSO = $(CC) $(c++FLAGS) -shared -armpl
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -armpl
c++DBUG = c++DBUG =
c++OPT = -mcpu=thunderx2t99 -ffp-contract=fast -ffast-math -O3 -funsafe-math-optimizations c++OPT = -ffp-contract=fast -ffast-math -O3 -funsafe-math-optimizations -fsimdmath -armpl
cDBUG = cDBUG =
cOPT = -mcpu=thunderx2t99 -ffp-contract=fast -ffast-math -O3 cOPT = -ffp-contract=fast -ffast-math -O3 -armpl
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment