Skip to content

Instantly share code, notes, and snippets.

@wmoxam
Last active August 29, 2015 14:23
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 wmoxam/991cadc6d7b0ddfff325 to your computer and use it in GitHub Desktop.
Save wmoxam/991cadc6d7b0ddfff325 to your computer and use it in GitHub Desktop.
Crystal on OpenBSD
Methods tried, and to be tried
Use Linux emulation to run Crystal compiler. FAILED
- OBSD Linux emulation is only for i386, Crystal binaries are 64-bit. Also OBSD i386 binaries are not compatible with amd64.
Use the first release that used a Ruby compiler to compile the next version (and so on) until we have an up to date version.
- current OBSD has llvm 3.5 in ports, the original Ruby version of Crystal targeted v3.3
- OBSD LLVM port isn't built with LLVM_ENABLE_SHARED, hopefully this is an easy change
- to simplify things it may be easier to build on a version of OBSD that supports LLVM 3.3
Untried: Maybe something can be cross compiled? (http://clang.llvm.org/docs/CrossCompilation.html)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment