panekj / lapce-cpp-clangd

C/C++ LSP plugin based on clangd for Lapce
Apache License 2.0
18 stars 4 forks source link

clangd file is universal on mac #3

Closed gdamore closed 2 years ago

gdamore commented 2 years ago

There isn't a good reason to restrict this from working on macOS M1 ARM.

The downloaded binaries for clangd are universal (meaning they work on both ARM and x86) -- even if they weren't, x86 binaries would Just Work.

In fact, on windows, the same situation prevails -- Windows supports x86 binaries running on their ARM variants just fine, at least on Windows 11.

Linux is the only outlier here. (It's too bad clangd doesn't supply ARM binaries.)

gdamore commented 2 years ago

You closed this, but I don't see an associated commit? I had a branch that I was going to submit as a PR, but ... ?

Elara6331 commented 2 years ago

You can run x86 binaries on ARM linux as well if you install qemu-user-static, but regardless, you can just install it using your package manager and then provide the path in the settings.