mirror of
https://github.com/sockspls/badfish
synced 2025-07-12 03:59:15 +00:00
Fix gcc PGO build on Windows
This fixes the issue #1375 of the PGO builds failing under Windows: https://github.com/official-stockfish/Stockfish/issues/1375 Solution found during this discussion in the fishcooking forum: https://groups.google.com/forum/?fromgroups=#!topic/fishcooking/RjIPgeFFLPQ Closes #1408. No functional change.
This commit is contained in:
parent
4c57cf0ead
commit
860223c5e6
1 changed files with 2 additions and 2 deletions
|
@ -89,11 +89,11 @@ namespace {
|
||||||
|
|
||||||
// Read option name (can contain spaces)
|
// Read option name (can contain spaces)
|
||||||
while (is >> token && token != "value")
|
while (is >> token && token != "value")
|
||||||
name += string(" ", name.empty() ? 0 : 1) + token;
|
name += (name.empty() ? "" : " ") + token;
|
||||||
|
|
||||||
// Read option value (can contain spaces)
|
// Read option value (can contain spaces)
|
||||||
while (is >> token)
|
while (is >> token)
|
||||||
value += string(" ", value.empty() ? 0 : 1) + token;
|
value += (value.empty() ? "" : " ") + token;
|
||||||
|
|
||||||
if (Options.count(name))
|
if (Options.count(name))
|
||||||
Options[name] = value;
|
Options[name] = value;
|
||||||
|
|
Loading…
Add table
Reference in a new issue