mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-01 03:12:51 +00:00
lldb: fix on Darwin
This gives a few fixes for LLDB on Darwin. Note: you will have to do code signing for it to work outside of root!
This commit is contained in:
parent
634f5f0d0f
commit
29acc510c0
@ -32,17 +32,21 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
nativeBuildInputs = [ cmake python which swig ];
|
nativeBuildInputs = [ cmake python which swig ];
|
||||||
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
buildInputs = [ ncurses zlib libedit libxml2 llvm ]
|
||||||
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc ];
|
++ stdenv.lib.optionals stdenv.isDarwin [ darwin.libobjc darwin.apple_sdk.libs.xpc darwin.apple_sdk.frameworks.Foundation darwin.bootstrap_cmds darwin.apple_sdk.frameworks.Carbon darwin.apple_sdk.frameworks.Cocoa ];
|
||||||
|
|
||||||
CXXFLAGS = "-fno-rtti";
|
CXXFLAGS = "-fno-rtti";
|
||||||
hardeningDisable = [ "format" ];
|
hardeningDisable = [ "format" ];
|
||||||
|
|
||||||
|
cmakeFlags = [
|
||||||
|
"-DLLDB_CODESIGN_IDENTITY=" # codesigning makes nondeterministic
|
||||||
|
];
|
||||||
|
|
||||||
enableParallelBuilding = true;
|
enableParallelBuilding = true;
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
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 = licenses.ncsa;
|
license = licenses.ncsa;
|
||||||
platforms = platforms.allBut platforms.darwin;
|
platforms = platforms.all;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user