llvmPackages_12: reorganize files
Restructure pkgs/development/compilers/llvm/12 in a similar spirit as #117433 to mirror the other llvm directories.
This commit is contained in:
parent
6802c2e2ce
commit
781e69d19c
@ -32,7 +32,7 @@ let
|
|||||||
'';
|
'';
|
||||||
in {
|
in {
|
||||||
|
|
||||||
llvm = callPackage ./llvm.nix { };
|
llvm = callPackage ./llvm { };
|
||||||
|
|
||||||
clang-unwrapped = callPackage ./clang {
|
clang-unwrapped = callPackage ./clang {
|
||||||
inherit (tools) lld;
|
inherit (tools) lld;
|
||||||
@ -80,11 +80,11 @@ let
|
|||||||
extraBuildCommands = mkExtraBuildCommands cc;
|
extraBuildCommands = mkExtraBuildCommands cc;
|
||||||
};
|
};
|
||||||
|
|
||||||
lld = callPackage ./lld.nix {
|
lld = callPackage ./lld {
|
||||||
libunwind = libraries.libunwind;
|
libunwind = libraries.libunwind;
|
||||||
};
|
};
|
||||||
|
|
||||||
lldb = callPackage ./lldb.nix {
|
lldb = callPackage ./lldb {
|
||||||
inherit (darwin) libobjc bootstrap_cmds;
|
inherit (darwin) libobjc bootstrap_cmds;
|
||||||
inherit (darwin.apple_sdk.libs) xpc;
|
inherit (darwin.apple_sdk.libs) xpc;
|
||||||
inherit (darwin.apple_sdk.frameworks) Foundation Carbon Cocoa;
|
inherit (darwin.apple_sdk.frameworks) Foundation Carbon Cocoa;
|
||||||
@ -172,7 +172,7 @@ let
|
|||||||
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
callPackage = newScope (libraries // buildLlvmTools // { inherit stdenv cmake libxml2 python3 isl release_version version fetch; });
|
||||||
in {
|
in {
|
||||||
|
|
||||||
compiler-rt = callPackage ./compiler-rt.nix ({} //
|
compiler-rt = callPackage ./compiler-rt ({} //
|
||||||
(lib.optionalAttrs (stdenv.hostPlatform.useLLVM or false) {
|
(lib.optionalAttrs (stdenv.hostPlatform.useLLVM or false) {
|
||||||
stdenv = overrideCC stdenv buildLlvmTools.lldClangNoCompilerRt;
|
stdenv = overrideCC stdenv buildLlvmTools.lldClangNoCompilerRt;
|
||||||
}));
|
}));
|
||||||
@ -186,7 +186,7 @@ let
|
|||||||
stdenv = overrideCC stdenv buildLlvmTools.lldClangNoLibcxx;
|
stdenv = overrideCC stdenv buildLlvmTools.lldClangNoLibcxx;
|
||||||
}));
|
}));
|
||||||
|
|
||||||
libcxxabi = callPackage ./libc++abi.nix ({} //
|
libcxxabi = callPackage ./libc++abi ({} //
|
||||||
(lib.optionalAttrs (stdenv.hostPlatform.useLLVM or false) {
|
(lib.optionalAttrs (stdenv.hostPlatform.useLLVM or false) {
|
||||||
stdenv = overrideCC stdenv buildLlvmTools.lldClangNoLibcxx;
|
stdenv = overrideCC stdenv buildLlvmTools.lldClangNoLibcxx;
|
||||||
libunwind = libraries.libunwind;
|
libunwind = libraries.libunwind;
|
||||||
@ -194,7 +194,7 @@ let
|
|||||||
|
|
||||||
openmp = callPackage ./openmp.nix {};
|
openmp = callPackage ./openmp.nix {};
|
||||||
|
|
||||||
libunwind = callPackage ./libunwind.nix ({} //
|
libunwind = callPackage ./libunwind ({} //
|
||||||
(lib.optionalAttrs (stdenv.hostPlatform.useLLVM or false) {
|
(lib.optionalAttrs (stdenv.hostPlatform.useLLVM or false) {
|
||||||
stdenv = overrideCC stdenv buildLlvmTools.lldClangNoLibcxx;
|
stdenv = overrideCC stdenv buildLlvmTools.lldClangNoLibcxx;
|
||||||
}));
|
}));
|
||||||
|
@ -29,7 +29,7 @@ stdenv.mkDerivation {
|
|||||||
'' + lib.optionalString stdenv.isDarwin ''
|
'' + lib.optionalString stdenv.isDarwin ''
|
||||||
export TRIPLE=x86_64-apple-darwin
|
export TRIPLE=x86_64-apple-darwin
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
'' + lib.optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patch -p1 -d libcxx -i ${../libcxx-0001-musl-hacks.patch}
|
patch -p1 -d libcxx -i ${../../libcxx-0001-musl-hacks.patch}
|
||||||
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
'' + lib.optionalString stdenv.hostPlatform.isWasm ''
|
||||||
patch -p1 -d llvm -i ${./libcxxabi-wasm.patch}
|
patch -p1 -d llvm -i ${./libcxxabi-wasm.patch}
|
||||||
'';
|
'';
|
@ -73,7 +73,7 @@ in stdenv.mkDerivation (rec {
|
|||||||
--replace "PassBuilderCallbacksTest.cpp" ""
|
--replace "PassBuilderCallbacksTest.cpp" ""
|
||||||
rm unittests/IR/PassBuilderCallbacksTest.cpp
|
rm unittests/IR/PassBuilderCallbacksTest.cpp
|
||||||
'' + optionalString stdenv.hostPlatform.isMusl ''
|
'' + optionalString stdenv.hostPlatform.isMusl ''
|
||||||
patch -p1 -i ${../TLI-musl.patch}
|
patch -p1 -i ${../../TLI-musl.patch}
|
||||||
substituteInPlace unittests/Support/CMakeLists.txt \
|
substituteInPlace unittests/Support/CMakeLists.txt \
|
||||||
--replace "add_subdirectory(DynamicLibrary)" ""
|
--replace "add_subdirectory(DynamicLibrary)" ""
|
||||||
rm unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
|
rm unittests/Support/DynamicLibrary/DynamicLibraryTest.cpp
|
Loading…
x
Reference in New Issue
Block a user