ycmd: fix build

This also fixes build for Mac OS X. The build failed before because both
clang and clang-unwrapped were in scope and CMake tried to compile the
library with unwrapped clang with well-understood consequences.

This commit fixes the issue by passing libclang through a different way.
This commit is contained in:
Alexey Shmalko 2016-08-18 01:35:30 +03:00
parent 1db8403e6f
commit 1a2c7fe628
No known key found for this signature in database
GPG key ID: DCEF7BCCEB3066C3

View file

@ -10,12 +10,13 @@ stdenv.mkDerivation rec {
sha256 = "1g0hivv3wla7z5dgnkcn3ny38p089pjfj36nx6k29zmprgmjinyr";
};
buildInputs = [ python cmake llvmPackages.clang boost makeWrapper ];
buildInputs = [ python cmake boost makeWrapper ];
propagatedBuildInputs = with pythonPackages; [ waitress frozendict bottle ];
buildPhase = ''
python build.py --clang-completer --system-libclang --system-boost
export EXTRA_CMAKE_ARGS=-DPATH_TO_LLVM_ROOT=${llvmPackages.clang-unwrapped}
python build.py --clang-completer --system-boost
'';
configurePhase = ":";