Fix for debug-build.

This commit is contained in:
jeefo 2019-09-21 23:32:49 +03:00
commit 0f23ef8e4f
2 changed files with 4 additions and 4 deletions

View file

@ -32,7 +32,7 @@ public:
// calloc on linux with debug enabled doesn't always zero out memory
#if defined (CR_DEBUG) && !defined (CR_WINDOWS)
plat.bzero (ptr);
plat.bzero (ptr, length);
#endif
return ptr;
}

View file

@ -10,7 +10,7 @@ PROJECT = yapb
SOURCES = ../source
OBJECTS = $(wildcard $(SOURCES)/*.cpp)
COMPILER_FLAGS = -std=c++11 -m32 -Wall -Wextra -Werror -fno-exceptions -fno-rtti
COMPILER_FLAGS = -std=c++11 -m32 -Wall -Wextra -Werror -fno-exceptions -fno-rtti -pedantic
LINKER_FLAGS = -m32 -ldl
ifeq "$(DEBUG)" "true"
@ -53,8 +53,8 @@ ifeq ($(findstring clang,$(COMPILER)),clang)
else ifeq ($(findstring gcc,$(COMPILER)),gcc)
ifneq "$(OSX)" "false"
ifneq "$(DEBUG)" "true"
LINKER_FLAGS += -Wl,--no-undefined -flto=thin
COMPILER_FLAGS += -funroll-all-loops -flto=thin
LINKER_FLAGS += -Wl,--no-undefined
COMPILER_FLAGS += -funroll-all-loops
endif
endif
else ifeq ($(findstring icc,$(COMPILER)),icc)