dlang-community / drepl

A REPL for D
Boost Software License 1.0
78 stars 20 forks source link

Add ldc to the supported compilers #85

Closed ljmf00 closed 3 years ago

ljmf00 commented 3 years ago

This PR will add support for LDC compiler. I'm not quite sure if it's better to refactor DMD Engine to be widely supported for every D compiler. Currently ldmd supports arguments of dmd using ldc.

Fixes #75 .

ljmf00 commented 3 years ago

@MartinNowak can you take a look at this? I'm not sure if the library name is the same across all systems, but I supposed.

ljmf00 commented 3 years ago

Looks about right, think the dmd interfaces are fine.

Would be cool to add more tests with at least one more linux distro to differ the environment. I'm saying that because I had issues with compiler passed to DMD environment variable. In archlinux ldmd is actually symbolic linked to ldmd2.

ljmf00 commented 3 years ago

Rebased with master

ljmf00 commented 3 years ago

Looks about right, think the dmd interfaces are fine.

@MartinNowak did you forgot to merge? I already rebased with master.