Commit a3cfb658 authored by Emery Hemingway's avatar Emery Hemingway
Browse files

compilers/nim: do not modify hardening flags

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
parent cf0f865c
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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 = ''