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
This commit is contained in:
Emery Hemingway 2023-07-16 14:17:20 +01:00
parent cf0f865c71
commit a3cfb6589c

View File

@ -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 = ''