From a3cfb6589cb4f4b834ae329418b58ca0f21589d8 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Sun, 16 Jul 2023 14:17:20 +0100 Subject: [PATCH] compilers/nim: do not modify hardening flags MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Hardening can set -O𝑛 flags that contradict $CC flags added by the Nim compiler but this should be resolved later in the wrapper script. Fix #243759 --- pkgs/development/compilers/nim/default.nix | 3 --- 1 file changed, 3 deletions(-) diff --git a/pkgs/development/compilers/nim/default.nix b/pkgs/development/compilers/nim/default.nix index 692f5331d0b8..131a27b6f544 100644 --- a/pkgs/development/compilers/nim/default.nix +++ b/pkgs/development/compilers/nim/default.nix @@ -285,9 +285,6 @@ in { "--set NIM_CONFIG_PATH ${placeholder "out"}/etc/nim" # Use the custom configuration - - ''--set NIX_HARDENING_ENABLE "''${NIX_HARDENING_ENABLE/fortify}"'' - # Fortify hardening appends -O2 to gcc flags which is unwanted for unoptimized nim builds. ]; installPhase = ''