nvim-lspinstall icon indicating copy to clipboard operation
nvim-lspinstall copied to clipboard

determine the type of libc when download rust-analyzer

Open CandySunPlus opened this issue 3 years ago • 3 comments

We need to determine the type of libc when download rust-analyzer.

CandySunPlus avatar Aug 19 '21 10:08 CandySunPlus

Good point. But there has to be a better way to figure out if it's gnu or musl?

kabouzeid avatar Aug 19 '21 10:08 kabouzeid

The way to get the Libc type through shell is basically realized through ldd. You can take a look at this article: https://dev.to/0xbf/how-to-get-glibc-version-c-lang-26he

CandySunPlus avatar Aug 20 '21 02:08 CandySunPlus

Hmm I don't like this. Seems very fragile

kabouzeid avatar Aug 20 '21 11:08 kabouzeid