BUILD=native
This commit is contained in:
parent
6ead1aa8fc
commit
f0df907b19
12
Makefile
12
Makefile
|
|
@ -155,17 +155,27 @@ ifeq ($(BUILD),release)
|
|||
ifeq ($(findstring $(CFLAGS),-O),)
|
||||
CFLAGS_COMMON += -O3
|
||||
# only add -O3 if no -O flag is in $(CFLAGS)
|
||||
# to allow overriding the optimizations
|
||||
endif
|
||||
CPPFLAGS_COMMON +=
|
||||
LDFLAGS_COMMON += -s
|
||||
else
|
||||
|
||||
ifeq ($(BUILD),native)
|
||||
ifeq ($(findstring $(CFLAGS),-O),)
|
||||
CFLAGS_COMMON += -O3
|
||||
# only add -O3 if no -O flag is in $(CFLAGS)
|
||||
endif
|
||||
CFLAGS_COMMON += -march=native -mcpu=native
|
||||
CPPFLAGS_COMMON +=
|
||||
LDFLAGS_COMMON += -s
|
||||
else
|
||||
|
||||
$(error Unsupported build type: $(BUILD))
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
endif
|
||||
|
||||
INSTALLDIR_BASE := $(INSTALLDIR)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user