Skip to content

Instantly share code, notes, and snippets.

@kpy3
Last active May 20, 2019 16:46
Show Gist options
  • Save kpy3/b743ce3e02125d57d133f2dc7d8d2940 to your computer and use it in GitHub Desktop.
Save kpy3/b743ce3e02125d57d133f2dc7d8d2940 to your computer and use it in GitHub Desktop.
Make kerl happy on macOS with clang
# More info: https://github.com/neovim/neovim/issues/9050#issuecomment-429674155
export SDKROOT=`xcrun --show-sdk-path`
export CC=clang CXX=clang CFLAGS="-g -O3"
KERL_USE_AUTOCONF=no
KERL_CONFIGURE_OPTIONS="--with-ssl=`brew --prefix openssl` --enable-vm-probes --enable-dirty-schedulers --enable-kernel-poll --enable-esock --with-dynamic-trace=dtrace --without-javac --disable-hipe --disable-native-libs --without-odbc --enable-threads --disable-sctp --enable-smp-support"
KERL_BUILD_DOCS=no
KERL_INSTALL_MANPAGES=yes
KERL_INSTALL_HTMLDOCS=no
KERL_ENABLE_PROMPT=yes
KERL_PROMPT_FORMAT="%F{red}[erl:%BUILDNAME%]%f "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment