Commit f01849ff authored by Mark Olesen's avatar Mark Olesen Committed by Andrew Heather
Browse files

COMP: adjust ARM compilation flags (#1225)

- with -mcpu=native for automatic detection and -armpl for linking in
  the performance libraries
parent 12adfe13
SUFFIXES += .c
cc = armclang
cc = armclang -mpcu=native
cWARN = -Wall
......@@ -12,5 +12,5 @@ ctoo = $(WM_SCHEDULER) $(cc) $(cFLAGS) -c $< -o $@
LINK_LIBS = $(cDBUG)
LINKLIBSO = $(cc) -shared
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs
LINKLIBSO = $(cc) -shared -armpl
LINKEXE = $(cc) -Xlinker --add-needed -Xlinker -z -Xlinker nodefs -armpl
include $(GENERAL_RULES)/Clang/c++
CC = armclang++ -std=c++11
CC = armclang++ -std=c++11 -mcpu=native
include $(DEFAULT_RULES)/c++$(WM_COMPILE_OPTION)
......@@ -13,5 +13,5 @@ cpptoo = $(Ctoo)
LINK_LIBS = $(c++DBUG)
LINKLIBSO = $(CC) $(c++FLAGS) -shared
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed
LINKLIBSO = $(CC) $(c++FLAGS) -shared -armpl
LINKEXE = $(CC) $(c++FLAGS) -Xlinker --add-needed -armpl
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 =
cOPT = -mcpu=thunderx2t99 -ffp-contract=fast -ffast-math -O3
cOPT = -ffp-contract=fast -ffast-math -O3 -armpl
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