Freedesktop Sdk Extensions for DLang

Hello,

I’d like to introduce a Sdk Extension for DLang compilers, probably for LDC since that has the best optimizations. I’m a little unsure how bootstrapping should be done though, since LDC needs a D compiler for bootstrapping itself and GDC doesn’t appear to be in the Sdk as of now. Would it be acceptable to download binaries from upstream to bootstrap from for the first bootstrap?

You will get the best answers on this by asking the Freedesktop Sdk team, either:

It seems @refi64 was working on DLang as well in the past: https://gitlab.com/freedesktop-sdk/freedesktop-sdk/issues/652#note_170405322

It depends a bit on how you want to build your extension. The upstream freedesktop sdk is built using buildstream which then exports to a flatpak. You can also build extensions in flathub, like for instance the openjdk one is. That one does use a binary jdk to bootstrap the build. You can see here for the details: https://github.com/flathub/org.freedesktop.Sdk.Extension.openjdk11/blob/branch/19.08/org.freedesktop.Sdk.Extension.openjdk11.json#L24

Thanks, I’ve opened Add org.freedesktop.Sdk.Extension.ldc by Cogitri · Pull Request #1383 · flathub/flathub · GitHub now :slight_smile: