Skip to content

Build llvm23#5087

Draft
gnavdev28 wants to merge 1 commit intoldc-developers:masterfrom
gnavdev28:build_llvm23
Draft

Build llvm23#5087
gnavdev28 wants to merge 1 commit intoldc-developers:masterfrom
gnavdev28:build_llvm23

Conversation

@gnavdev28
Copy link
Contributor

Hi everyone,
I am opening this PR to get your help.

I tried to build LDC trunk with the new LLVM 23 on Windows using MSVC. My build method is using CMake and Ninja.

The build failed many times. I just read the error logs and fixed them by instinct (trial and error). To force it to compile, I had to change gen/ctfloat.cpp, dmd/root/ctfloat.d, and intrinsics.di, etc.

Now it builds successfully! However, I know my changes are very messy and I touched the frontend files which I probably shouldn't. (maybe?)

Can you look at my changes and give me some tips on how to fix this the right and clean way?

Thanks!

@gnavdev28 gnavdev28 marked this pull request as draft March 9, 2026 03:04
@gnavdev28 gnavdev28 force-pushed the build_llvm23 branch 2 times, most recently from a2a7249 to 42711f7 Compare March 9, 2026 03:10
Copy link
Contributor

@thewilsonator thewilsonator left a comment

Choose a reason for hiding this comment

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

The commented changes look good with some minor adjustments, please separate them out in to a separate PR that we can merge soon while I continue reviewing.

@gnavdev28 gnavdev28 force-pushed the build_llvm23 branch 2 times, most recently from afce095 to 1895c15 Compare March 9, 2026 06:41
@thewilsonator
Copy link
Contributor

please rebase

@gnavdev28
Copy link
Contributor Author

@thewilsonator I rebased

@gnavdev28 gnavdev28 force-pushed the build_llvm23 branch 5 times, most recently from bc05f23 to fb2a2eb Compare March 10, 2026 01:02
@gulugulubing
Copy link
Contributor

gulugulubing commented Mar 10, 2026

PassPlugin.h in drivers/plugins.cpp was moved from llvm/Passes to llvm/Plugins/ since 22.1.0:
llvm/llvm-project@f54df0d.

It looks like the files you have modified haven't include this.

@gulugulubing
Copy link
Contributor

PassPlugin.h in drivers/plugins.cpp was moved from llvm/Passes to llvm/Plugins/ since 22.1.0: llvm/llvm-project@f54df0d.

It looks like the files you have modified haven't include this.

Got it. On windows LDC_ENABLE_PLUGINS is off so you built successfully without modifying plugins.cpp.

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.

3 participants