From ebcb9a21035df76bfa638bd171af3d7061ac8e12 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Mon, 29 Oct 2018 08:57:49 -0700 Subject: [PATCH] Add llvm install info --- programs/bpf/c/README.md | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/programs/bpf/c/README.md b/programs/bpf/c/README.md index e4ec119b1..08a691ac2 100644 --- a/programs/bpf/c/README.md +++ b/programs/bpf/c/README.md @@ -1 +1,18 @@ -Place holder, will hold instructions on how to setup and build C-based BPF programs + +## Prerequisites + +### Linux Ubuntu + +The following link describes how to install llvm: + https://blog.kowalczyk.info/article/k/how-to-install-latest-clang-6.0-on-ubuntu-16.04-xenial-wsl.html + +### macOS + +Ensure the latest llvm is installed: +``` +$ brew update # <- ensure your brew is up to date +$ brew list llvm # <- should see "llvm: stable 7.0.0 (bottled), HEAD [keg-only]" +$ brew install llvm +$ brew --prefix llvm # <- should output "/usr/local/opt/llvm" +``` +