V: Remove hardcoding from compiler

Created on 23 Jun 2019  Â·  2Comments  Â·  Source: vlang/v

Hi, I was interested in your project. I saw the source of your compiler.

Excuse me, but this https://github.com/vlang/v/blob/master/compiler/main.v#L495 is stupid. Why there is a hardcoding for clang and dynamic linker? Okay, it can find clang binary automatically, but how can I use your compiler on musl systems for example? Clang can automatically detect Linc, their crts and etc.

Clean-Up

Most helpful comment

Please be respectful. That code is ugly, but it's only supposed to work on my machine. I'll fix cross compiling for everyone by tomorrow.

All 2 comments

Please be respectful. That code is ugly, but it's only supposed to work on my machine. I'll fix cross compiling for everyone by tomorrow.

Thanks

On Sun, Jun 23, 2019, 2:29 PM Alex Medvednikov notifications@github.com
wrote:

Please be respectful. That code is ugly, but it's only supposed to work on
my machine. I'll fix cross compiling for everyone by tomorrow.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/vlang/v/issues/443?email_source=notifications&email_token=ALI22EOBBC7UWUV7LYZPZCLP35NA3A5CNFSM4H2YVWCKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODYK4H7Y#issuecomment-504742911,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ALI22EK224D32LNPU2HXTDLP35NA3ANCNFSM4H2YVWCA
.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

medvednikov picture medvednikov  Â·  3Comments

jtkirkpatrick picture jtkirkpatrick  Â·  3Comments

shouji-kazuo picture shouji-kazuo  Â·  3Comments

PavelVozenilek picture PavelVozenilek  Â·  3Comments

markgraydev picture markgraydev  Â·  3Comments