Skip to content

Conversation

@andrurogerz
Copy link
Contributor

Overview

Explicitly link llvm-jitlink-executor with ExecutionEngine to avoid link failures when building LLVM as a Windows DLL. This link dependency should probably have always been declared here, but didn't matter when building against an LLVM static library because it was (presumably) picked up as a transitive dependency.

This change is required to enable the Windows DLL build because llvm-jitlink-executor is declared using add_llvm_utility which invokes add_llvm_executable with DISABLE_LLVM_LINK_LLVM_DYLIB so it links statically against its dependencies instead of against the main LLVM library.

Background

The effort to support building LLVM as a Windows DLL is tracked in #109483. Additional context is provided in this discourse.

@andrurogerz andrurogerz marked this pull request as ready for review June 18, 2025 20:33
@andrurogerz
Copy link
Contributor Author

@compnerd here's a super quick one, thanks!

@compnerd compnerd merged commit 780c0ef into llvm:main Jun 18, 2025
10 checks passed
@andrurogerz andrurogerz deleted the llvmdll-llvm-jitlink-executor branch July 7, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants