Skip to content

Instantly share code, notes, and snippets.

@pgeraghty
Last active August 30, 2019 21:36
Show Gist options
  • Save pgeraghty/47c26ba239abd9a54f785eafb7034011 to your computer and use it in GitHub Desktop.
Save pgeraghty/47c26ba239abd9a54f785eafb7034011 to your computer and use it in GitHub Desktop.
Allow compilation of statically-linked binary for Crystal Lang on Alpine
# Hack to avoid segfault during compilation of statically-linked binary on Alpine
{% if flag?(:static) %}
require "llvm/lib_llvm"
require "llvm/enums"
{% end %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment