mirror of
https://github.com/sockspls/badfish
synced 2025-07-11 19:49:14 +00:00
Workaround optimization bug in gcc
Unfortunatly we need to slow down to -O1 to be sure it works always. Note that sometime it works also with -O2 or even -O3, but user has to try himself. Signed-off-by: Marco Costalba <mcostalba@gmail.com>
This commit is contained in:
parent
ba07b95ee0
commit
2643f1552f
1 changed files with 4 additions and 1 deletions
|
@ -25,8 +25,11 @@ EXE = stockfish
|
|||
### ==========================================================================
|
||||
### Compiler speed switches for both GCC and ICC. These settings are generally
|
||||
### fast on a broad range of systems, but may be changed experimentally
|
||||
###
|
||||
### NOTE: Some versions of gcc miscompile value.h with -O2 or -O3, this is the
|
||||
### safe setup, try changing to -O3 or -O2 and verify it works for you.
|
||||
### ==========================================================================
|
||||
GCCFLAGS = -O3 -msse
|
||||
GCCFLAGS = -O1 -msse
|
||||
ICCFLAGS = -fast -msse
|
||||
ICCFLAGS-OSX = -fast -mdynamic-no-pic
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue