mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
add option to support cpu-aware optimization
This commit is contained in:
parent
fce8249caf
commit
f18d064084
1 changed files with 3 additions and 2 deletions
|
@ -8,6 +8,7 @@ CD = cd
|
|||
MKDIR = mkdir
|
||||
TMP = $(TOPDIR)/tmp
|
||||
OPT = --disable-shared --disable-multilib --disable-newlib-multithread --disable-newlib-reent-small
|
||||
ARCHOPT = -mavx2 -mfma
|
||||
|
||||
# Prettify output
|
||||
V = 0
|
||||
|
@ -17,8 +18,8 @@ ifeq ($V,0)
|
|||
endif
|
||||
|
||||
default: $(ARCH)
|
||||
$Q$(MAKE) ARCH=$(ARCH) TARGET=$(TARGET) CFLAGS+="-DSTREAM_ARRAY_SIZE=100000 -ffreestanding -O3 -Wall -I$(NEWLIB)/include -I../../include -I../../arch/$(ARCH)/include" LDFLAGS+="-nostdlib -L$(NEWLIB)/lib" -C examples depend
|
||||
$Q$(MAKE) ARCH=$(ARCH) TARGET=$(TARGET) CFLAGS+="-DSTREAM_ARRAY_SIZE=100000 -ffreestanding -O3 -Wall -I$(NEWLIB)/include -I../../include -I../../arch/$(ARCH)/include" LDFLAGS+="-nostdlib -L$(NEWLIB)/lib" -C examples
|
||||
$Q$(MAKE) ARCH=$(ARCH) TARGET=$(TARGET) CFLAGS+="$(ARCHOPT) -DSTREAM_ARRAY_SIZE=100000 -ffreestanding -O3 -Wall -I$(NEWLIB)/include -I../../include -I../../arch/$(ARCH)/include" LDFLAGS+="-nostdlib -L$(NEWLIB)/lib" -C examples depend
|
||||
$Q$(MAKE) ARCH=$(ARCH) TARGET=$(TARGET) CFLAGS+="$(ARCHOPT) -DSTREAM_ARRAY_SIZE=100000 -ffreestanding -O3 -Wall -I$(NEWLIB)/include -I../../include -I../../arch/$(ARCH)/include" LDFLAGS+="-nostdlib -L$(NEWLIB)/lib" -C examples
|
||||
|
||||
$(ARCH):
|
||||
@echo Build newlib
|
||||
|
|
Loading…
Add table
Reference in a new issue