vim: enable fortify when using clang (#506853)

This commit is contained in:
Philip Taron
2026-04-15 13:43:47 +00:00
committed by GitHub
3 changed files with 8 additions and 4 deletions
+6 -2
View File
@@ -1,4 +1,8 @@
{ 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
View File
@@ -17,7 +17,7 @@
}:
let
common = callPackage ./common.nix { };
common = callPackage ./common.nix { inherit stdenv; };
in
stdenv.mkDerivation {
pname = "vim";
+1 -1
View File
@@ -81,7 +81,7 @@ let
endif
'';
common = callPackage ./common.nix { };
common = callPackage ./common.nix { inherit stdenv; };
in
stdenv.mkDerivation {