mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 10:06:26 +08:00
Compile without DEBUG flag by default
And build also symbol table. It can easily stripped after .exe is done and it is necessary for profiling. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
11
src/Makefile
11
src/Makefile
@@ -30,6 +30,13 @@ GCCFLAGS = -O3
|
|||||||
ICCFLAGS = -fast
|
ICCFLAGS = -fast
|
||||||
|
|
||||||
|
|
||||||
|
### ==========================================================================
|
||||||
|
### Enable/disable debugging, disabled by default
|
||||||
|
### ==========================================================================
|
||||||
|
GCCFLAGS += -DNDEBUG
|
||||||
|
ICCFLAGS += -DNDEBUG
|
||||||
|
|
||||||
|
|
||||||
### ==========================================================================
|
### ==========================================================================
|
||||||
### Run built-in benchmark for pgo-builds with: 32MB hash 1 thread 10 depth
|
### Run built-in benchmark for pgo-builds with: 32MB hash 1 thread 10 depth
|
||||||
### These settings are generally fast, but may be changed experimentally
|
### These settings are generally fast, but may be changed experimentally
|
||||||
@@ -38,8 +45,8 @@ PGOBENCH = ./$(EXE) bench 32 1 10 default depth
|
|||||||
|
|
||||||
|
|
||||||
### General compiler settings. Do not change
|
### General compiler settings. Do not change
|
||||||
GCCFLAGS += -s -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing
|
GCCFLAGS += -g -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing
|
||||||
ICCFLAGS += -s -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing -wd383,869,981,10187,10188,11505,11503
|
ICCFLAGS += -g -Wall -fno-exceptions -fno-rtti -fno-strict-aliasing -wd383,869,981,10187,10188,11505,11503
|
||||||
|
|
||||||
|
|
||||||
### General linker settings. Do not change
|
### General linker settings. Do not change
|
||||||
|
|||||||
Reference in New Issue
Block a user