Fix for debug-build.
This commit is contained in:
parent
61fad287e7
commit
0f23ef8e4f
2 changed files with 4 additions and 4 deletions
|
|
@ -32,7 +32,7 @@ public:
|
||||||
|
|
||||||
// calloc on linux with debug enabled doesn't always zero out memory
|
// calloc on linux with debug enabled doesn't always zero out memory
|
||||||
#if defined (CR_DEBUG) && !defined (CR_WINDOWS)
|
#if defined (CR_DEBUG) && !defined (CR_WINDOWS)
|
||||||
plat.bzero (ptr);
|
plat.bzero (ptr, length);
|
||||||
#endif
|
#endif
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@ PROJECT = yapb
|
||||||
SOURCES = ../source
|
SOURCES = ../source
|
||||||
OBJECTS = $(wildcard $(SOURCES)/*.cpp)
|
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
|
LINKER_FLAGS = -m32 -ldl
|
||||||
|
|
||||||
ifeq "$(DEBUG)" "true"
|
ifeq "$(DEBUG)" "true"
|
||||||
|
|
@ -53,8 +53,8 @@ ifeq ($(findstring clang,$(COMPILER)),clang)
|
||||||
else ifeq ($(findstring gcc,$(COMPILER)),gcc)
|
else ifeq ($(findstring gcc,$(COMPILER)),gcc)
|
||||||
ifneq "$(OSX)" "false"
|
ifneq "$(OSX)" "false"
|
||||||
ifneq "$(DEBUG)" "true"
|
ifneq "$(DEBUG)" "true"
|
||||||
LINKER_FLAGS += -Wl,--no-undefined -flto=thin
|
LINKER_FLAGS += -Wl,--no-undefined
|
||||||
COMPILER_FLAGS += -funroll-all-loops -flto=thin
|
COMPILER_FLAGS += -funroll-all-loops
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
else ifeq ($(findstring icc,$(COMPILER)),icc)
|
else ifeq ($(findstring icc,$(COMPILER)),icc)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue