Skip to content

Conversation

@hmelder
Copy link
Member

@hmelder hmelder commented Oct 20, 2025

This pull request addresses the following issues:

  • The check_symbol_exists check fails, when Block.h is located in the CMAKE_PREFIX_PATH.
  • Internal blocks runtime is always compiled, resulting in duplicate symbol errors on Windows and WebAssembly.
  • Internal blocks runtime test is always compiled and executed.
  • External symbols from the blocks runtime are incorrectly imported on Windows

This is a slightly modified version of the file found in swift-corelibs-libdispatch. Notabily, the non-existent HINTS are removed.
Use cmake/FindBlocksRuntime.cmake to locate the external blocks runtime,
and do not compile the internal one.
@hmelder hmelder force-pushed the cmake-fix-include-dirs branch from 6a18e54 to fca3146 Compare October 27, 2025 10:37
@hmelder hmelder requested review from davidchisnall and removed request for davidchisnall October 27, 2025 10:52
@hmelder
Copy link
Member Author

hmelder commented Oct 27, 2025

Rebased to latest master

@hmelder hmelder merged commit a6a4f7c into master Oct 27, 2025
95 checks passed
@hmelder hmelder deleted the cmake-fix-include-dirs branch October 27, 2025 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants