- Follow the steps to setup sulong from the README: https://github.com/graalvm/sulong
-
Install llvm version 3.3 I installed with the following way (mileage may vary):
wget https://raw.githubusercontent.com/Homebrew/homebrew-versions/75e1f3f6e640b97c4f0d64d8797da94073cd612c/llvm33.rb brew install llvm33.rb
-
Try running
jt build cexts
andjt test cexts
. E.g.:$ JT_OPT=opt-3.3 JT_CLANG=clang-3.3 OPENSSL_HOME=/usr/local/opt/openssl JAVA_HOME=/Users/brandonfish/Documents/suparent/labsjdk1.8.0_92-jvmci-0.22 GRAAL_HOME=/Users/brandonfish/Documents/suparent/sulong SULONG_HOME=/Users/brandonfish/Documents/suparent/sulong GEM_HOME=/Users/brandonfish/Documents/jruby-truffle-gem-test-pack/gems jt build cexts
$ JT_OPT=opt-3.3 JT_CLANG=clang-3.3 OPENSSL_HOME=/usr/local/opt/openssl JAVA_HOME=/Users/brandonfish/Documents/suparent/labsjdk1.8.0_92-jvmci-0.22 GRAAL_HOME=/Users/brandonfish/Documents/suparent/sulong SULONG_HOME=/Users/brandonfish/Documents/suparent/sulong GEM_HOME=/Users/brandonfish/Documents/jruby-truffle-gem-test-pack/gems jt test cexts