mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 16:53:09 +00: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:
parent
8a5a64eac5
commit
ccd6bad512
1 changed files with 1 additions and 1 deletions
|
@ -141,7 +141,7 @@ endif
|
|||
|
||||
### 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
|
||||
LDFLAGS += $(EXTRALDFLAGS)
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue