Unverified Commit 866fc503 authored by Philip Taron's avatar Philip Taron Committed by GitHub
Browse files

vim: enable fortify when using clang (#506853)

parents ccfff09e 4a1a222f
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
{ lib, fetchFromGitHub }:
{
  lib,
  fetchFromGitHub,
  stdenv,
}:
rec {
  version = "9.2.0106";

@@ -17,7 +21,7 @@ rec {
  enableParallelBuilding = true;
  enableParallelInstalling = false;

  hardeningDisable = [ "fortify" ];
  hardeningDisable = if stdenv.cc.isClang then [ "strictflexarrays1" ] else [ "fortify" ];

  # Use man from $PATH; escape sequences are still problematic.
  postPatch = ''
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@
}:

let
  common = callPackage ./common.nix { };
  common = callPackage ./common.nix { inherit stdenv; };
in
stdenv.mkDerivation {
  pname = "vim";
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ let
    endif
  '';

  common = callPackage ./common.nix { };
  common = callPackage ./common.nix { inherit stdenv; };

in
stdenv.mkDerivation {