Skip to content

Instantly share code, notes, and snippets.

@bjfish
Last active January 9, 2017 04:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bjfish/1bb8278e2f15b9189e934fa4c17f3f32 to your computer and use it in GitHub Desktop.
Save bjfish/1bb8278e2f15b9189e934fa4c17f3f32 to your computer and use it in GitHub Desktop.
Running with Sulong
  1. Follow the steps to setup sulong from the README: https://github.com/graalvm/sulong

OSX Steps

  1. 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
    
  2. Try running jt build cexts and jt 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
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment