Unverified Commit cb2d5a2f authored by Yureka's avatar Yureka Committed by GitHub
Browse files

gdbHostCpuOnly: init (#226134)

Closure size 843.9M -> 212.3M
parent 46f0bd31
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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 −0
Original line number Diff line number Diff line
@@ -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 { };