Skip to content

Commit

Permalink
Add cc-flags for Mac with Homebrew.
Browse files Browse the repository at this point in the history
If libuv is installed with Homebrew, then it's in a directory under
"HOMEBREW_PREFIX" and not in one of the locations previously considered.
  • Loading branch information
rpgoldman committed May 23, 2023
1 parent ebe3e16 commit dd6df07
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion grovel.lisp
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
(in-package :libuv)

#.(when (uiop:getenv "HOMEBREW_PREFIX")
(pushnew :homebrew *features*)
(values))

(cc-flags #+windows "-Ic:/include/"
#+windows "-Ic:/include/uv/"
#+(or darwin freebsd openbsd) "-I/usr/local/include/")
#+(or darwin freebsd openbsd) "-I/usr/local/include/"
#+homebrew
#.(concatenate 'string "-I" (uiop:getenv "HOMEBREW_PREFIX") "/include/")
)

(include "uv.h")

Expand Down

0 comments on commit dd6df07

Please sign in to comment.