COMP: adjust ARM compilation flags (#1225)
- with -mcpu=native for automatic detection and -armpl for linking in the performance libraries
This commit is contained in:
parent
12adfe13fa
commit
f01849ffd4
@ -1,6 +1,6 @@
|
||||
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
|
||||
|
@ -1,6 +1,6 @@
|
||||
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
|
||||
|
@ -1,2 +1,2 @@
|
||||
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
|
||||
|
@ -1,2 +1,2 @@
|
||||
cDBUG =
|
||||
cOPT = -mcpu=thunderx2t99 -ffp-contract=fast -ffast-math -O3
|
||||
cOPT = -ffp-contract=fast -ffast-math -O3 -armpl
|
||||
|
Loading…
Reference in New Issue
Block a user