Initial steps for LTO, not enabled yet

Signed-off-by: falkTX <falktx@falktx.com>
This commit is contained in:
falkTX 2021-10-19 14:20:43 +01:00
parent 9b872dfd50
commit 0dce76052e
No known key found for this signature in database
GPG key ID: CDBAA37ABC74FBA0
3 changed files with 66 additions and 22 deletions

20
deps/Makefile vendored
View file

@ -13,6 +13,26 @@ USE_NANOVG_FBO = true
USE_RGBA = true
include ../dpf/Makefile.base.mk
# --------------------------------------------------------------
# custom build flags
BASE_FLAGS += -fno-finite-math-only
BASE_FLAGS += -I../include
BASE_FLAGS += -I../include/neon-compat
BASE_FLAGS += -pthread
ifeq ($(WINDOWS),true)
BASE_FLAGS += -D_USE_MATH_DEFINES
BASE_FLAGS += -DWIN32_LEAN_AND_MEAN
BASE_FLAGS += -I../include/mingw-compat
BASE_FLAGS += -I../include/mingw-std-threads
endif
# ifneq ($(DEBUG),true)
# BASE_FLAGS += -fno-strict-aliasing -flto -Werror=odr -Werror=lto-type-mismatch
# LINK_FLAGS += -fno-strict-aliasing -flto -Werror=odr -Werror=lto-type-mismatch
# endif
# --------------------------------------------------------------
# override VCV arch.mk stuff so we can build more architectures