This requires a number of upstream patches, listed in EXTRA_PATCHES. When at some point a new ldc version is imported, the patches can easily be dropped. Bump USES=llvm:max to 22, and drop the libldc-jit files from pkg-plist, since they don't correctly package even with llvm 21, at least not under poudriere. (The port does not enable LDC_DYNAMIC_COMPILE, so the jit plugins are never built.)
Created attachment 273268 [details] lang/ldc: make it build with DEFAULT_VERSIONS+=llvm=22
Hello Dimitry, I think the best is waiting for next version of ldc. It is a huge patch file to apply to our current ldc port. Close this PR if you are ok with it.