Skip to content

Instantly share code, notes, and snippets.

@mcandre
Created March 19, 2021 18:17
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save mcandre/6ad2edee00c693b057743aafba20f1df to your computer and use it in GitHub Desktop.
Save mcandre/6ad2edee00c693b057743aafba20f1df 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