Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

makeruby knows about os x now

  • Loading branch information...
commit b2ed4c020001cd83fd5215be9874bcd7fd8da31a 1 parent d375013
@dpaola2 dpaola2 authored
Showing with 7 additions and 2 deletions.
  1. +7 −2 makeruby
View
9 makeruby
@@ -24,13 +24,18 @@ CLOSURE_JAR=/home/max/emscripten-workspace/closure/build/compiler.jar
EMSCRIPTEN=`pwd`/emscripten
EMMAKEN=$EMSCRIPTEN/tools/emmakenxx.py
-
+CPP=/lib/cpp
+case `uname -s` in
+ Darwin)
+ CPP=/usr/bin/cpp
+ ;;
+esac
set -e
cd ruby-1.8.7
echo 'Compiling to LLVM...'
-CFLAGS=$FLAGS RANLIB=$EMMAKEN AR=$EMMAKEN CXX=$EMMAKEN CC=$EMMAKEN ./configure --without-pthread
+CFLAGS=$FLAGS RANLIB=$EMMAKEN AR=$EMMAKEN CXX=$EMMAKEN CPP=$CPP CC=$EMMAKEN ./configure --without-pthread
patch config.h < ../config.h.patch
make miniruby
Please sign in to comment.
Something went wrong with that request. Please try again.