-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
Add Darwin support for ccls #56673
Add Darwin support for ccls #56673
Conversation
Thanks! |
I wonder how to use this. I cannot build it in my clone of Nixpkgs. I'm on 10.14.3 with Nix 2.2.1.
And later:
I issued the following commands to build:
|
I tried the newest master of nixpkgs and it also fails for me. Even though with this PR it still worked. I haven't bisected yet why it doesn't work anymore. |
I tried building the commit that worked for me, which also doesn't work anymore. Even though I have a working version cached on my computer. Could it be a macOS system update related problem? |
It seems like PR #56645 changed something with llvmPackages. On macOS llvmPackages_latest doesn't provide the latest LLVM anymore. Version 5 is used instead, and ccls requires a newer version. I could either set it to some specific version, or does somebody know why _latest returns version 5 here? |
This is exactly the behaviour which I observed. For me this also applies to packages like |
Motivation for this change
Darwin was not in supported branches.
Things done
Had to set a few compile flags to make it work. And set stdenv from llvmPackages_latest, as Darwin Clang is too old to compile and run CCLS. Visibility change fixes a lot of warnings regarding different visibility in different translation units re. llvmlib
sandbox
innix.conf
on non-NixOS)nix-shell -p nox --run "nox-review wip"
./result/bin/
)nix path-info -S
before and after)