lldb-4.0rc2: Try to fix but ultimately disable on Darwin.

Currently it's failing due to needing Foundation.h,
but LLDB on Nix-Darwin is a bit sketchy anyway
due to code-signing requirements.
This commit is contained in:
Will Dietz 2017-02-19 12:11:48 -06:00
parent a5aedafbd9
commit 7ea342708a

View File

@ -6,10 +6,12 @@
, swig , swig
, which , which
, libedit , libedit
, libxml2
, llvm , llvm
, clang-unwrapped , clang-unwrapped
, python , python
, version , version
, darwin
}: }:
stdenv.mkDerivation { stdenv.mkDerivation {
@ -27,21 +29,22 @@ stdenv.mkDerivation {
cmake/modules/LLDBStandalone.cmake cmake/modules/LLDBStandalone.cmake
''; '';
buildInputs = [ cmake python which swig ncurses zlib libedit llvm ]; buildInputs = [ cmake python which swig ncurses zlib libedit libxml2 llvm ]
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc ];
CXXFLAGS = "-fno-rtti"; CXXFLAGS = "-fno-rtti";
hardeningDisable = [ "format" ]; hardeningDisable = [ "format" ];
cmakeFlags = [ cmakeFlags = [
"-DLLDB_DISABLE_LIBEDIT=1" "-DLLDB_DISABLE_LIBEDIT=ON"
]; ];
enableParallelBuilding = true; enableParallelBuilding = true;
meta = { meta = with stdenv.lib; {
description = "A next-generation high-performance debugger"; description = "A next-generation high-performance debugger";
homepage = http://llvm.org/; homepage = http://llvm.org/;
license = stdenv.lib.licenses.ncsa; license = licenses.ncsa;
platforms = stdenv.lib.platforms.all; platforms = platforms.allBut platforms.darwin;
}; };
} }