Skip to content

Commit

Permalink
Added -O2 to CFLAGS for binary compilation optimizations (#698)
Browse files Browse the repository at this point in the history
  • Loading branch information
stradicat committed Jul 15, 2024
1 parent af4df51 commit 746d178
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Formula/emacs-plus@26.rb
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ def install
imagemagick_lib_path = Formula["imagemagick@6"].opt_lib/"pkgconfig"
ohai "ImageMagick PKG_CONFIG_PATH: ", imagemagick_lib_path
ENV.prepend_path "PKG_CONFIG_PATH", imagemagick_lib_path
ENV.append "CFLAGS", "-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"
ENV.append "CFLAGS", "-O2 -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"

args << "--with-modules"
args << "--with-rsvg"
Expand Down
2 changes: 1 addition & 1 deletion Formula/emacs-plus@27.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def install
args << "--with-gnutls"

ENV.append "CFLAGS", "-g -Og" if build.with? "debug"
ENV.append "CFLAGS", "-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"
ENV.append "CFLAGS", "-O2 -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"

args <<
if build.with? "dbus"
Expand Down
2 changes: 1 addition & 1 deletion Formula/emacs-plus@28.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def install
args << "--with-native-compilation" if build.with? "native-comp"

ENV.append "CFLAGS", "-g -Og" if build.with? "debug"
ENV.append "CFLAGS", "-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"
ENV.append "CFLAGS", "-O2 -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"

# Necessary for libgccjit library discovery
ENV.append "CPATH", "-I#{Formula["libgccjit"].opt_include}" if build.with? "native-comp"
Expand Down
2 changes: 1 addition & 1 deletion Formula/emacs-plus@29.rb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ def install
args << "--without-compress-install" if build.without? "compress-install"

ENV.append "CFLAGS", "-g -Og" if build.with? "debug"
ENV.append "CFLAGS", "-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"
ENV.append "CFLAGS", "-O2 -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"

# Necessary for libgccjit library discovery
ENV.append "CPATH", "-I#{Formula["libgccjit"].opt_include}" if build.with? "native-comp"
Expand Down
2 changes: 1 addition & 1 deletion Formula/emacs-plus@30.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def install
args << "--without-compress-install" if build.without? "compress-install"

ENV.append "CFLAGS", "-g -Og" if build.with? "debug"
ENV.append "CFLAGS", "-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"
ENV.append "CFLAGS", "-O2 -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"

# Necessary for libgccjit library discovery
if build.with? "native-comp"
Expand Down
2 changes: 1 addition & 1 deletion Formula/emacs-plus@31.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def install
args << "--without-compress-install" if build.without? "compress-install"

ENV.append "CFLAGS", "-g -Og" if build.with? "debug"
ENV.append "CFLAGS", "-DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"
ENV.append "CFLAGS", "-O2 -DFD_SETSIZE=10000 -DDARWIN_UNLIMITED_SELECT"

# Necessary for libgccjit library discovery
if build.with? "native-comp"
Expand Down

0 comments on commit 746d178

Please sign in to comment.