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

Don't build MLIRExecutionEngineShared on Windows #109524

Merged
merged 2 commits into from
Oct 9, 2024

Conversation

Zentrik
Copy link
Contributor

@Zentrik Zentrik commented Sep 21, 2024

It doesn't currently build on windows, see #106859.

@llvmbot
Copy link
Member

llvmbot commented Sep 21, 2024

@llvm/pr-subscribers-mlir-execution-engine

@llvm/pr-subscribers-mlir

Author: None (Zentrik)

Changes

It doesn't currently build on windows, see #106859.


Full diff: https://github.com/llvm/llvm-project/pull/109524.diff

1 Files Affected:

  • (modified) mlir/lib/ExecutionEngine/CMakeLists.txt (+1-1)
diff --git a/mlir/lib/ExecutionEngine/CMakeLists.txt b/mlir/lib/ExecutionEngine/CMakeLists.txt
index a091944b9ee7df..81ebc05e9eba59 100644
--- a/mlir/lib/ExecutionEngine/CMakeLists.txt
+++ b/mlir/lib/ExecutionEngine/CMakeLists.txt
@@ -97,7 +97,7 @@ add_mlir_library(MLIRExecutionEngine
   MLIRTargetLLVMIRExport
   )
 
-if(LLVM_BUILD_LLVM_DYLIB)
+if(LLVM_BUILD_LLVM_DYLIB AND NOT (WIN32 OR MINGW OR CYGWIN))
   # Build a shared library for the execution engine. Some downstream projects
   # use this library to build their own CPU runners while preserving dynamic
   # linkage.

Copy link

⚠️ We detected that you are using a GitHub private e-mail address to contribute to the repo.
Please turn off Keep my email addresses private setting in your account.
See LLVM Discourse for more information.

It doesn't currently build on windows, see llvm#106859.
@giordano
Copy link
Contributor

giordano commented Oct 9, 2024

Gentle bump to get this reviewed 🙂

@Zentrik
Copy link
Contributor Author

Zentrik commented Oct 9, 2024

@Dinistro does this look fine? I suspect this is not an issue with my setup.

@Dinistro
Copy link
Contributor

Dinistro commented Oct 9, 2024

Sorry for not getting back to you, this was somehow lost in my notifications. This seems reasonable, but maybe add acomment that the underlying issue is unclear.

@Zentrik
Copy link
Contributor Author

Zentrik commented Oct 9, 2024

Done, if you're happy with this could you merge it as well (I don't have commit rights)

@Dinistro
Copy link
Contributor

Dinistro commented Oct 9, 2024

Gentle bump to get this reviewed 🙂

Please request review in the future. I did not get any notification on this until you guys pinged me explicitly.

Copy link
Contributor

@Dinistro Dinistro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM as a workaround.

@Zentrik
Copy link
Contributor Author

Zentrik commented Oct 9, 2024

Please request review in the future. I did not get any notification on this until you guys pinged me explicitly.

Unfortunately, I don't seem to have those rights either but no worries.

@Dinistro Dinistro merged commit 74e1062 into llvm:main Oct 9, 2024
7 of 8 checks passed
giordano pushed a commit to JuliaLang/llvm-project that referenced this pull request Oct 9, 2024
This disabled the build of `MLIRExecutionEngineShared` because this causes linkage issues in windows for currently unknown reasons.
Related issue: llvm#106859.

(cherry picked from commit 74e1062)
giordano pushed a commit to JuliaLang/llvm-project that referenced this pull request Oct 11, 2024
This disabled the build of `MLIRExecutionEngineShared` because this causes linkage issues in windows for currently unknown reasons.
Related issue: llvm#106859.

(cherry picked from commit 74e1062)
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.

4 participants