Merge pull request #175820 from Mic92/ruby

ruby: enable O3 optimization

authored by Jörg Thalheim and committed by GitHub 3364c755 797c577d

+4
+4
pkgs/development/interpreters/ruby/default.nix
··· 137 137 (lib.enableFeature docSupport "install-doc") 138 138 (lib.withFeature jemallocSupport "jemalloc") 139 139 (lib.withFeatureAs docSupport "ridir" "${placeholder "devdoc"}/share/ri") 140 + # ruby enables -O3 for gcc, however our compiler hardening wrapper 141 + # overrides that by enabling `-O2` which is the minimum optimization 142 + # needed for `_FORTIFY_SOURCE`. 143 + ] ++ lib.optional stdenv.cc.isGNU "CFLAGS=-O3" ++ [ 140 144 ] ++ ops stdenv.isDarwin [ 141 145 # on darwin, we have /usr/include/tk.h -- so the configure script detects 142 146 # that tk is installed