Permalink
Browse files

Add fsevent_watch_guard support for 32bit kernels

Adds cflag '-arch i386' if `uname -a` reports a 32bit kernel
See: guard/guard#206#
  • Loading branch information...
Johannes Huning
Johannes Huning committed Dec 27, 2011
1 parent e8ae6af commit 2ffb35aa0ef83fded22e51fbdc724eb524cec111
Showing with 3 additions and 0 deletions.
  1. +3 −0 ext/extconf.rb
View
@@ -27,6 +27,9 @@
cflags = core_flags + %w{-Os -pipe}
+ arch_sig = `uname -m`
+ cflags << '-arch i386' if arch_sig =~ /i386$/i
+
wflags = %w{
-Wmissing-prototypes -Wreturn-type -Wmissing-braces -Wparentheses -Wswitch
-Wunused-function -Wunused-label -Wunused-parameter -Wunused-variable

0 comments on commit 2ffb35a

Please sign in to comment.