mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-17 01:24:47 +00:00
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:
parent
cf0f865c71
commit
a3cfb6589c
@ -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 = ''
|
||||
|
Loading…
Reference in New Issue
Block a user