Skip to content
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

youcompleteme: fix compilation #21574

Merged
merged 1 commit into from Jan 1, 2017
Merged

youcompleteme: fix compilation #21574

merged 1 commit into from Jan 1, 2017

Conversation

veprbl
Copy link
Member

@veprbl veprbl commented Jan 1, 2017

  1. Replace --system-libclang with an explicit setting for the path to
    nix libclang 3.9. Otherwise it will find system's libclang on darwin.

  2. Remove clang/llvm from build inputs. This prevents ycm itself from
    being compiled by clang 3.9. stdenv's standard compiler (gcc or
    clang 3.7) will suffice.

  3. Enable C++11 again as Cannot build YouCompleteMe on Darwin #16212 is caused by incopatibility between
    clang 3.9 and libc++ 3.7, but we don't compile YCM with clang 3.9, so
    this is not needed anymore.

Motivation for this change
Things done
  • Tested using sandboxing
    (nix.useSandbox on NixOS,
    or option build-use-sandbox in nix.conf
    on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • Linux
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

1) Replace --system-libclang with an explicit setting for the path to
nix libclang 3.9. Otherwise it will find system's libclang on darwin.

2) Remove clang/llvm from build inputs. This prevents ycm itself from
being compiled by clang 3.9. stdenv's standard compiler (gcc or
clang 3.7) will suffice.

3) Enable C++11 again as NixOS#16212 is caused by incopatibility between
clang 3.9 and libc++ 3.7, but we don't compile YCM with clang 3.9, so
this is not needed anymore.
@mention-bot
Copy link

@veprbl, thanks for your PR! By analyzing the history of the files in this pull request, we identified @bkase, @jagajaga and @garbas to be potential reviewers.

@veprbl veprbl mentioned this pull request Jan 1, 2017
7 tasks
@LnL7 LnL7 added the 6.topic: darwin Running or building packages on Darwin label Jan 1, 2017
@LnL7 LnL7 merged commit 2c28854 into NixOS:master Jan 1, 2017
@LnL7
Copy link
Member

LnL7 commented Jan 1, 2017

Thanks!

@veprbl veprbl deleted the ycm_fix branch December 1, 2020 17:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
6.topic: darwin Running or building packages on Darwin
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants