mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-17 15:22:59 +01:00
ruby: enable O3 optimization
This commit is contained in:
parent
083327132b
commit
64e09fac3d
1 changed files with 4 additions and 0 deletions
|
@ -137,6 +137,10 @@ let
|
|||
(lib.enableFeature docSupport "install-doc")
|
||||
(lib.withFeature jemallocSupport "jemalloc")
|
||||
(lib.withFeatureAs docSupport "ridir" "${placeholder "devdoc"}/share/ri")
|
||||
# ruby enables -O3 for gcc, however our compiler hardening wrapper
|
||||
# overrides that by enabling `-O2` which is the minimum optimization
|
||||
# needed for `_FORTIFY_SOURCE`.
|
||||
] ++ lib.optional stdenv.cc.isGNU "CFLAGS=-O3" ++ [
|
||||
] ++ ops stdenv.isDarwin [
|
||||
# on darwin, we have /usr/include/tk.h -- so the configure script detects
|
||||
# that tk is installed
|
||||
|
|
Loading…
Reference in a new issue