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

Is it possible to add GDC compiler? #2703

Open
Behkar opened this issue Dec 15, 2022 · 2 comments
Open

Is it possible to add GDC compiler? #2703

Behkar opened this issue Dec 15, 2022 · 2 comments

Comments

@Behkar
Copy link

Behkar commented Dec 15, 2022

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‍‍‍```
@s-ludwig
Copy link
Member

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.

@aleferri
Copy link

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

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

No branches or pull requests

3 participants