Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use optional for the engine path #5575

Closed

Conversation

Disservin
Copy link
Member

@Disservin Disservin commented Sep 7, 2024

  • A small quality of file change is to change the type of engine path from a string to an optional string, skips the binary directory lookup, which is commonly disabled by people who create wasm builds or include stockfish as a library.

@Sopel97
Copy link
Member

Sopel97 commented Sep 7, 2024

Only global variables within a single translation units are initialized in specified order. If your code is placed in a different translation unit it is not guaranteed that InitGlobals is initialized before uci_global is initialized

@Disservin
Copy link
Member Author

Ah right.. mh

@Disservin Disservin marked this pull request as draft September 7, 2024 21:00
@Disservin Disservin changed the title Always initialize globals Use optional for the engine path Sep 8, 2024
@Disservin Disservin marked this pull request as ready for review September 8, 2024 17:27
@Disservin Disservin closed this in effa246 Sep 9, 2024
skystarspython pushed a commit to official-pikafish/Pikafish that referenced this pull request Sep 14, 2024
- A small quality of file change is to change the type of engine path
  from a string to an optional string, skips the binary directory
  lookup, which is commonly disabled by people who create wasm builds or
  include stockfish as a library.

closes official-stockfish/Stockfish#5575

No functional change
skystarspython pushed a commit to official-pikafish/Pikafish that referenced this pull request Nov 3, 2024
- A small quality of file change is to change the type of engine path
  from a string to an optional string, skips the binary directory
  lookup, which is commonly disabled by people who create wasm builds or
  include stockfish as a library.

closes official-stockfish/Stockfish#5575

No functional change
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants