mirror of
https://github.com/HChaZZY/Stockfish.git
synced 2025-12-22 01:56:58 +08:00
Compile without exceptions
Add the -fno-exceptions flag to the Makefile to avoid the unecessary exceptions support in the executable (we do not use any exception in Stockfish at the moment). This change gives a 9.2% reduction in size for the executable binary. Before : executable size = 376956 bytes After: executable size = 347652 bytes No functional change.
This commit is contained in:
committed by
Marco Costalba
parent
8a5a64eac5
commit
ccd6bad512
@@ -141,7 +141,7 @@ endif
|
|||||||
|
|
||||||
### 3.1 Selecting compiler (default = gcc)
|
### 3.1 Selecting compiler (default = gcc)
|
||||||
|
|
||||||
CXXFLAGS += -Wall -Wcast-qual -std=c++11 $(EXTRACXXFLAGS)
|
CXXFLAGS += -Wall -Wcast-qual -fno-exceptions -std=c++11 $(EXTRACXXFLAGS)
|
||||||
DEPENDFLAGS += -std=c++11
|
DEPENDFLAGS += -std=c++11
|
||||||
LDFLAGS += $(EXTRALDFLAGS)
|
LDFLAGS += $(EXTRALDFLAGS)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user