Commit e1483816 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

Define -DNDEBUG for optimized builds

parent abd3e685
......@@ -700,15 +700,10 @@ bool MatchDiv32u(u32 op,u32 pc)
u32 match=MatchDiv32(pc+2,div_som_reg1,div_som_reg2,div_som_reg3);
//log("DIV32U matched %d%% @ 0x%X\n",match*100/65,pc);
if (match==65)
{
//DIV32U was perfectly matched :)
if (match==65) /* DIV32U was perfectly matched */
return true;
}
//no match ...
return false;
}
......@@ -726,16 +721,14 @@ bool MatchDiv32s(u32 op,u32 pc)
printf("DIV32S matched %d%% @ 0x%X\n",match*100/65,pc);
#endif
if (match==65)
if (match==65) /* DIV32S was perfectly matched */
{
/* DIV32S was perfectly matched :) */
#ifndef NDEBUG
printf("div32s %d/%d/%d\n",div_som_reg1,div_som_reg2,div_som_reg3);
#endif
return true;
}
//no match ...
return false;
}
......
......@@ -399,6 +399,11 @@ ifeq ($(DEBUG),1)
OPTFLAGS := -O0
else
OPTFLAGS := -O3
RZDCY_CFLAGS += -DNDEBUG
RZDCY_CXXFLAGS += -DNDEBUG
CFLAGS += -DNDEBUG
CXXFLAGS += -DNDEBUG
LDFLAGS += -DNDEBUG
endif
RZDCY_CFLAGS += $(CFLAGS) -c $(OPTFLAGS) -DRELEASE -ffast-math -ftree-vectorize -fomit-frame-pointer -D__LIBRETRO__
CFLAGS += -D__LIBRETRO__
......@@ -428,7 +433,7 @@ endif
RZDCY_CXXFLAGS := $(RZDCY_CFLAGS) -fno-exceptions -fno-rtti -std=gnu++11
LDFLAGS += -g -DNDEBUG
LDFLAGS += -g
CFLAGS += -g $(OPTFLAGS) -D RELEASE -c
CFLAGS += -fno-strict-aliasing -ffast-math -ftree-vectorize
CXXFLAGS += -fno-rtti -fpermissive -fno-operator-names
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment