Skip to content

[llvm] explicitly link llvm-jitlink-executor with ExecutionEngine #144778

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

Merged
merged 1 commit into from
Jun 18, 2025

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
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