Skip to content

Instantly share code, notes, and snippets.

@orklann
Forked from mcandre/mac-enable-libfuzzer.md
Created February 20, 2022 03:33
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 orklann/ba0a9e8d31f538134c3ce238eab93688 to your computer and use it in GitHub Desktop.
Save orklann/ba0a9e8d31f538134c3ce238eab93688 to your computer and use it in GitHub Desktop.
macOS Enable libFuzzer
  1. Run brew install llvm --HEAD.
  2. Update certain shell variables:
# Prefer newer LLVM with fuzzing enabled
# shellcheck source=/dev/null
export CC='clang'
export CXX='clang++'
export LDFLAGS="-L/usr/local/opt/llvm/lib -Wl,-rpath,/usr/local/opt/llvm/lib"
PATH="$(brew --prefix)/opt/llvm/bin:$PATH"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment