llvmPackages_git: 18.0.0-unstable-2023-10-04 -> 18.0.0-unstable-2023-12-13 (#286525)
* llvmPackages_git: 18.0.0-unstable-2023-10-04 -> 18.0.0-unstable-2023-12-13 * llvmPackages_git.clang: generalize version in folders * llvmPackages_git.lldb: bump swig and vscode extension * llvmPackages_git.{clang,lldb,llvm}-manpages: replace recommonmark by myst-parser
This commit is contained in:
parent
342943aaad
commit
c380de2514
@ -5,7 +5,8 @@
|
||||
, cmake
|
||||
, zlib
|
||||
, ncurses
|
||||
, swig
|
||||
, swig3
|
||||
, swig4
|
||||
, which
|
||||
, libedit
|
||||
, libxml2
|
||||
@ -34,6 +35,11 @@ let
|
||||
cp -r ${monorepoSrc}/cmake "$out"
|
||||
cp -r ${monorepoSrc}/lldb "$out"
|
||||
'' else src;
|
||||
vscodeExt = {
|
||||
name = if lib.versionAtLeast release_version "18" then "lldb-dap" else "lldb-vscode";
|
||||
version = if lib.versionAtLeast release_version "18" then "0.2.0" else "0.1.0";
|
||||
};
|
||||
swig = if lib.versionAtLeast release_version "18" then swig4 else swig3;
|
||||
in
|
||||
|
||||
stdenv.mkDerivation (rec {
|
||||
@ -58,7 +64,10 @@ stdenv.mkDerivation (rec {
|
||||
lua5_3
|
||||
] ++ lib.optionals enableManpages [
|
||||
python3.pkgs.sphinx
|
||||
] ++ lib.optionals (lib.versionOlder release_version "18" && enableManpages) [
|
||||
python3.pkgs.recommonmark
|
||||
] ++ lib.optionals (lib.versionAtLeast release_version "18" && enableManpages) [
|
||||
python3.pkgs.myst-parser
|
||||
] ++ lib.optionals (lib.versionAtLeast release_version "14") [
|
||||
ninja
|
||||
];
|
||||
@ -154,14 +163,14 @@ stdenv.mkDerivation (rec {
|
||||
|
||||
# Editor support
|
||||
# vscode:
|
||||
install -D ../tools/lldb-vscode/package.json $out/share/vscode/extensions/llvm-org.lldb-vscode-0.1.0/package.json
|
||||
mkdir -p $out/share/vscode/extensions/llvm-org.lldb-vscode-0.1.0/bin
|
||||
ln -s $out/bin/*-vscode $out/share/vscode/extensions/llvm-org.lldb-vscode-0.1.0/bin
|
||||
install -D ../tools/${vscodeExt.name}/package.json $out/share/vscode/extensions/llvm-org.${vscodeExt.name}-${vscodeExt.version}/package.json
|
||||
mkdir -p $out/share/vscode/extensions/llvm-org.${vscodeExt.name}-${vscodeExt.version}/bin
|
||||
ln -s $out/bin/*${if lib.versionAtLeast release_version "18" then vscodeExt.name else "-vscode"} $out/share/vscode/extensions/llvm-org.${vscodeExt.name}-${vscodeExt.version}/bin
|
||||
'';
|
||||
|
||||
passthru.vscodeExtName = "lldb-vscode";
|
||||
passthru.vscodeExtName = vscodeExt.name;
|
||||
passthru.vscodeExtPublisher = "llvm";
|
||||
passthru.vscodeExtUniqueId = "llvm-org.lldb-vscode-0.1.0";
|
||||
passthru.vscodeExtUniqueId = "llvm-org.${vscodeExt.name}-${vscodeExt.version}";
|
||||
|
||||
meta = llvm_meta // {
|
||||
homepage = "https://lldb.llvm.org/";
|
||||
|
@ -21,6 +21,7 @@ let
|
||||
sourceRoot = "${src.name}/${pname}";
|
||||
|
||||
nativeBuildInputs = [ cmake ninja python3 ]
|
||||
++ lib.optional (lib.versionAtLeast version "18" && enableManpages) python3.pkgs.myst-parser
|
||||
++ lib.optional enableManpages python3.pkgs.sphinx
|
||||
++ lib.optional stdenv.hostPlatform.isDarwin fixDarwinDylibNames;
|
||||
|
||||
@ -70,7 +71,7 @@ let
|
||||
ln -sv $out/bin/clang $out/bin/cpp
|
||||
|
||||
mkdir -p $lib/lib/clang
|
||||
mv $lib/lib/18 $lib/lib/clang/18
|
||||
mv $lib/lib/${lib.versions.major version} $lib/lib/clang/${lib.versions.major version}
|
||||
|
||||
# Move libclang to 'lib' output
|
||||
moveToOutput "lib/libclang.*" "$lib"
|
||||
|
@ -4,26 +4,22 @@ Date: Thu, 18 May 2017 11:56:12 -0500
|
||||
Subject: [PATCH] "purity" patch for 5.0
|
||||
|
||||
---
|
||||
lib/Driver/ToolChains/Gnu.cpp | 7 -------
|
||||
1 file changed, 7 deletions(-)
|
||||
lib/Driver/ToolChains/Gnu.cpp | 3 ---
|
||||
1 file changed, 3 deletions(-)
|
||||
|
||||
diff --git a/lib/Driver/ToolChains/Gnu.cpp b/lib/Driver/ToolChains/Gnu.cpp
|
||||
index fe3c0191bb..c6a482bece 100644
|
||||
--- a/lib/Driver/ToolChains/Gnu.cpp
|
||||
+++ b/lib/Driver/ToolChains/Gnu.cpp
|
||||
@@ -487,13 +487,7 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
} else {
|
||||
if (Args.hasArg(options::OPT_rdynamic))
|
||||
CmdArgs.push_back("-export-dynamic");
|
||||
|
||||
- if (!Args.hasArg(options::OPT_shared) && !IsStaticPIE &&
|
||||
- !Args.hasArg(options::OPT_r)) {
|
||||
@@ -446,9 +446,6 @@ void tools::gnutools::Linker::ConstructJob(Compilation &C, const JobAction &JA,
|
||||
ToolChain.isPIEDefault(Args));
|
||||
if (IsPIE)
|
||||
CmdArgs.push_back("-pie");
|
||||
- CmdArgs.push_back("-dynamic-linker");
|
||||
- CmdArgs.push_back(Args.MakeArgString(Twine(D.DyldPrefix) +
|
||||
- ToolChain.getDynamicLinker(Args)));
|
||||
- }
|
||||
}
|
||||
}
|
||||
|
||||
CmdArgs.push_back("-o");
|
||||
--
|
||||
2.11.0
|
||||
|
@ -19,9 +19,9 @@
|
||||
# LLVM release information; specify one of these but not both:
|
||||
, gitRelease ? {
|
||||
version = "18.0.0";
|
||||
rev = "6f44f87011cd52367626cac111ddbb2d25784b90";
|
||||
rev-version = "18.0.0-unstable-2023-10-04";
|
||||
sha256 = "sha256-CqsCDlzg8I2c9BybKP7B5nfHiQWktqgVavrfiYkjkx4=";
|
||||
rev = "2fd7657b6609454af7adb75765d164ec7d1bb80b";
|
||||
rev-version = "18.0.0-unstable-2023-12-13";
|
||||
sha256 = "sha256-/sMQzzFid0tAnreOIV9SUm2H6QbEGhpNcizl3LDPM5s=";
|
||||
}
|
||||
# i.e.:
|
||||
# {
|
||||
|
@ -86,10 +86,14 @@ stdenv.mkDerivation (rec {
|
||||
|
||||
nativeBuildInputs = [ cmake ninja python ]
|
||||
++ optionals enableManpages [
|
||||
# Note: we intentionally use `python3Packages` instead of `python3.pkgs`;
|
||||
# splicing does *not* work with the latter. (TODO: fix)
|
||||
python3Packages.sphinx python3Packages.recommonmark
|
||||
];
|
||||
# Note: we intentionally use `python3Packages` instead of `python3.pkgs`;
|
||||
# splicing does *not* work with the latter. (TODO: fix)
|
||||
python3Packages.sphinx
|
||||
] ++ optionals (lib.versionOlder version "18" && enableManpages) [
|
||||
python3Packages.recommonmark
|
||||
] ++ optionals (lib.versionAtLeast version "18" && enableManpages) [
|
||||
python3Packages.myst-parser
|
||||
];
|
||||
|
||||
buildInputs = [ libxml2 libffi ]
|
||||
++ optional enablePFM libpfm; # exegesis
|
||||
|
Loading…
Reference in New Issue
Block a user