Skip to content

Instantly share code, notes, and snippets.

@po6ix
Forked from mcandre/mac-enable-libfuzzer.md
Created September 29, 2023 19:56
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 po6ix/87286ab2ceb5a1a5c6bc5962fd224cb5 to your computer and use it in GitHub Desktop.
Save po6ix/87286ab2ceb5a1a5c6bc5962fd224cb5 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