Revert "Revert "ruby: enable O3 optimization""

This reverts commit fe8f468f0e.

Now we are targeting the right branch.
This commit is contained in:
Jörg Thalheim 2022-06-18 07:21:38 +02:00
parent fe8f468f0e
commit 49145d30e0
No known key found for this signature in database

View file

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