vibe-d/vibe.d

Is it possible to add GDC compiler?

Behkar opened this issue · 2 comments

Given that the new front end is GDC with D, I compiled it with GDC, the result was:

○ → dub --compiler=gdc

gdc: error: unrecognized command-line option ‘-run’
Command failed with exit code 1: gdc -run scripts/generate_version.d‍‍‍```

This is actually an error in deimos-openssl, which needs to be specialized for GDC by separating the operation into build and run.

To work around this error, it should be possible to use one of "openssl-1.1", "openssl-static" or "notls" as the build configuration of vibe-d:tls (i.e. by adding dependency "vibe-d:tls" version="*"; subConfiguration "vibe-d:tls" "notls" or similar).

I'm not sure whether anything else currently fails with GDC, but we should definitely add it back to the CI if possible.

I tried to build a simple vibe.d app with gdc by editing the dub.json file of deimos-openssl and it seems to work. I opened a PR to their repo