Merge pull request #41952 from obsidiansystems/darwin-booting-llvm
llvm: Remove unneeded libcxxabi dependencies
This commit is contained in:
commit
3e3a9e661d
|
@ -11,7 +11,8 @@ in stdenv.mkDerivation {
|
|||
|
||||
src = fetch "libcxxabi" "0ambfcmr2nh88hx000xb7yjm9lsqjjz49w5mlf6dlxzmj3nslzx4";
|
||||
|
||||
buildInputs = [ cmake ] ++ stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
|
||||
|
||||
postUnpack = ''
|
||||
unpackFile ${libcxx.src}
|
||||
|
|
|
@ -20,7 +20,6 @@ let
|
|||
in {
|
||||
llvm = callPackage ./llvm.nix {
|
||||
inherit compiler-rt_src;
|
||||
inherit (targetLlvmLibraries) libcxxabi;
|
||||
};
|
||||
|
||||
clang-unwrapped = callPackage ./clang {
|
||||
|
|
|
@ -5,7 +5,8 @@ stdenv.mkDerivation {
|
|||
|
||||
src = fetch "libcxxabi" "1qfs2iis1i0ppv11jndc98cvd7s25pj46pq2sfyldmzswdxmzdg1";
|
||||
|
||||
buildInputs = [ cmake ] ++ stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
|
||||
nativeBuildInputs = [ cmake ];
|
||||
buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
|
||||
|
||||
postUnpack = ''
|
||||
unpackFile ${libcxx.src}
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
, version
|
||||
, zlib
|
||||
, compiler-rt_src
|
||||
, libcxxabi
|
||||
, debugVersion ? false
|
||||
, enableSharedLibraries ? true
|
||||
}:
|
||||
|
@ -31,8 +30,7 @@ in stdenv.mkDerivation rec {
|
|||
mv compiler-rt-* $sourceRoot/projects/compiler-rt
|
||||
'';
|
||||
|
||||
buildInputs = [ perl groff cmake libxml2 python libffi ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin libcxxabi;
|
||||
buildInputs = [ perl groff cmake libxml2 python libffi ];
|
||||
|
||||
propagatedBuildInputs = [ ncurses zlib ];
|
||||
|
||||
|
|
|
@ -20,7 +20,6 @@ let
|
|||
in {
|
||||
llvm = callPackage ./llvm.nix {
|
||||
inherit compiler-rt_src;
|
||||
inherit (targetLlvmLibraries) libcxxabi;
|
||||
};
|
||||
|
||||
clang-unwrapped = callPackage ./clang {
|
||||
|
|
|
@ -6,7 +6,6 @@ stdenv.mkDerivation {
|
|||
src = fetch "libcxxabi" "1qi9q06zanqm8awzq83810avmvi52air6gr9zfip8mbg5viqn3cj";
|
||||
|
||||
nativeBuildInputs = [ cmake ];
|
||||
|
||||
buildInputs = stdenv.lib.optional (!stdenv.isDarwin && !stdenv.isFreeBSD) libunwind;
|
||||
|
||||
postUnpack = ''
|
||||
|
|
|
@ -13,7 +13,6 @@
|
|||
, version
|
||||
, zlib
|
||||
, compiler-rt_src
|
||||
, libcxxabi
|
||||
, debugVersion ? false
|
||||
, enableSharedLibraries ? (buildPlatform == hostPlatform)
|
||||
, darwin
|
||||
|
@ -53,7 +52,7 @@ in stdenv.mkDerivation rec {
|
|||
groff
|
||||
libxml2
|
||||
libffi
|
||||
] ++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ];
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [ ncurses zlib ];
|
||||
|
||||
|
|
|
@ -28,7 +28,6 @@ let
|
|||
|
||||
llvm = overrideManOutput (callPackage ./llvm.nix {
|
||||
inherit compiler-rt_src;
|
||||
inherit (targetLlvmLibraries) libcxxabi;
|
||||
});
|
||||
clang-unwrapped = overrideManOutput (callPackage ./clang {
|
||||
inherit clang-tools-extra_src;
|
||||
|
|
|
@ -12,7 +12,6 @@
|
|||
, release_version
|
||||
, zlib
|
||||
, compiler-rt_src
|
||||
, libcxxabi
|
||||
, debugVersion ? false
|
||||
, enableManpages ? false
|
||||
, enableSharedLibraries ? true
|
||||
|
@ -42,8 +41,7 @@ in stdenv.mkDerivation (rec {
|
|||
nativeBuildInputs = [ cmake python ]
|
||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
||||
|
||||
buildInputs = [ libxml2 libffi ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ];
|
||||
buildInputs = [ libxml2 libffi ];
|
||||
|
||||
propagatedBuildInputs = [ ncurses zlib ];
|
||||
|
||||
|
|
|
@ -43,7 +43,8 @@ in stdenv.mkDerivation (rec {
|
|||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
||||
|
||||
buildInputs = [ libxml2 libffi ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ];
|
||||
# TODO(@Ericson2314): Remove next mass rebuild
|
||||
++ stdenv.lib.optionals (stdenv.isDarwin && stdenv.hostPlatform == stdenv.buildPlatform) [ libcxxabi ];
|
||||
|
||||
propagatedBuildInputs = [ ncurses zlib ];
|
||||
|
||||
|
|
|
@ -25,9 +25,7 @@ let
|
|||
callPackage = newScope (tools // { inherit stdenv cmake libxml2 python2 isl release_version version fetch; });
|
||||
in {
|
||||
|
||||
llvm = overrideManOutput (callPackage ./llvm.nix {
|
||||
inherit (targetLlvmLibraries) libcxxabi;
|
||||
});
|
||||
llvm = overrideManOutput (callPackage ./llvm.nix { });
|
||||
clang-unwrapped = overrideManOutput (callPackage ./clang {
|
||||
inherit clang-tools-extra_src;
|
||||
});
|
||||
|
|
|
@ -11,7 +11,6 @@
|
|||
, version
|
||||
, release_version
|
||||
, zlib
|
||||
, libcxxabi
|
||||
, debugVersion ? false
|
||||
, enableManpages ? false
|
||||
, enableSharedLibraries ? true
|
||||
|
@ -40,8 +39,7 @@ in stdenv.mkDerivation (rec {
|
|||
nativeBuildInputs = [ cmake python ]
|
||||
++ stdenv.lib.optional enableManpages python.pkgs.sphinx;
|
||||
|
||||
buildInputs = [ libxml2 libffi ]
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ libcxxabi ];
|
||||
buildInputs = [ libxml2 libffi ];
|
||||
|
||||
propagatedBuildInputs = [ ncurses zlib ];
|
||||
|
||||
|
|
Loading…
Reference in New Issue