Skip to content

Commit

Permalink
emacs@29: cleanup native-comp related flags manipulation
Browse files Browse the repository at this point in the history
Since `emacs-plus@29` is using standard environment instead of
`superenv` provided by `brew`, Emacs configuration script picks up
these flags automatically.
  • Loading branch information
d12frosted committed May 9, 2022
1 parent 4253645 commit 38d00ad
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions Formula/emacs-plus@29.rb
Original file line number Diff line number Diff line change
Expand Up @@ -99,23 +99,6 @@ def install

args << "--with-native-compilation" if build.with? "native-comp"

if build.with? "native-comp"
gcc_ver = Formula["gcc"].any_installed_version
gcc_ver_major = gcc_ver.major
gcc_lib="#{HOMEBREW_PREFIX}/lib/gcc/#{gcc_ver_major}"

ENV.append "CFLAGS", "-I#{Formula["gcc"].include}"
ENV.append "CFLAGS", "-I#{Formula["libgccjit"].include}"
ENV.append "CFLAGS", "-I#{Formula["gmp"].include}"
ENV.append "CFLAGS", "-I#{Formula["libjpeg"].include}"

ENV.append "LDFLAGS", "-L#{gcc_lib}"
ENV.append "LDFLAGS", "-I#{Formula["gcc"].include}"
ENV.append "LDFLAGS", "-I#{Formula["libgccjit"].include}"
ENV.append "LDFLAGS", "-I#{Formula["gmp"].include}"
ENV.append "LDFLAGS", "-I#{Formula["libjpeg"].include}"
end

ENV.append "CFLAGS", "-g -Og" if build.with? "debug"

args <<
Expand Down

0 comments on commit 38d00ad

Please sign in to comment.