mirror of
https://git.suyu.dev/suyu/Yucom.git
synced 2026-01-04 13:44:22 +01:00
build: Introduce rules-common macro.
This commit is contained in:
parent
49cfbe9870
commit
dcb0f60cb7
2 changed files with 93 additions and 1 deletions
|
|
@ -37,6 +37,7 @@ endif
|
|||
|
||||
include $(SRC)/make/utility.mk
|
||||
include $(SRC)/make/rules-source.mk
|
||||
include $(SRC)/make/rules-common.mk
|
||||
|
||||
# If CC is coming from make's defaults or nowhere, use our own default. Otherwise respect environment.
|
||||
ifeq ($(ENABLE_CCACHE),1)
|
||||
|
|
@ -162,9 +163,11 @@ else
|
|||
MESON_STRIP_ARG := --strip
|
||||
endif
|
||||
|
||||
CROSSLDFLAGS += -Wl,--file-alignment,4096
|
||||
OPTIMIZE_FLAGS := -O2 -march=nocona $(call cc-option,$(CC),-mtune=core-avx2,) -mfpmath=sse
|
||||
SANITY_FLAGS := -fwrapv -fno-strict-aliasing
|
||||
COMMON_FLAGS := $(OPTIMIZE_FLAGS) $(SANITY_FLAGS)
|
||||
COMMON_FLAGS = $(OPTIMIZE_FLAGS) $(SANITY_FLAGS) -ffile-prefix-map=$(CCACHE_BASEDIR)=.
|
||||
COMMON_FLAGS32 := -mstackrealign
|
||||
CARGO_BUILD_ARG := --release
|
||||
|
||||
# These variables might need to be quoted, but might not
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue