gdbHostCpuOnly: init (#226134)

Closure size 843.9M -> 212.3M
This commit is contained in:
Yureka
2023-04-17 23:06:16 +02:00
committed by GitHub
parent 46f0bd317c
commit cb2d5a2fa9
2 changed files with 6 additions and 2 deletions
+4 -2
View File
@@ -9,6 +9,7 @@
, pythonSupport ? stdenv.hostPlatform == stdenv.buildPlatform && !stdenv.hostPlatform.isCygwin, python3 ? null
, enableDebuginfod ? false, elfutils
, guile ? null
, hostCpuOnly ? false
, safePaths ? [
# $debugdir:$datadir/auto-load are whitelisted by default by GDB
"$debugdir" "$datadir/auto-load"
@@ -27,7 +28,7 @@ in
assert pythonSupport -> python3 != null;
stdenv.mkDerivation rec {
pname = targetPrefix + basename;
pname = targetPrefix + basename + lib.optionalString hostCpuOnly "-host-cpu-only";
version = "13.1";
src = fetchurl {
@@ -94,7 +95,8 @@ stdenv.mkDerivation rec {
"--program-prefix=${targetPrefix}"
"--disable-werror"
"--enable-targets=all" "--enable-64-bit-bfd"
] ++ lib.optional (!hostCpuOnly) "--enable-targets=all" ++ [
"--enable-64-bit-bfd"
"--disable-install-libbfd"
"--disable-shared" "--enable-static"
"--with-system-zlib"
+2
View File
@@ -19102,6 +19102,8 @@ with pkgs;
guile = null;
};
gdbHostCpuOnly = gdb.override { hostCpuOnly = true; };
gf = callPackage ../development/tools/misc/gf { };
java-language-server = callPackage ../development/tools/java/java-language-server { };