Compiler Explorer with LLVM 6

Installing LLVM 6 and Clang 6

Note this instructions are for Ubuntu 16..04 xenial

Modify repositories if you are using different ubuntu version

sudo gedit /etc/apt/sources.list  (append the following)

———————————————————————————————————–

#LLVM and Clang
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial main
# 5.0
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-5.0 main
# 6.0
deb http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main
deb-src http://apt.llvm.org/xenial/ llvm-toolchain-xenial-6.0 main

———————————————————————————————————–

wget -O – https://apt.llvm.org/llvm-snapshot.gpg.key|sudo apt-key add –

sudo apt-get update

sudo apt-get install clang-6.0 clang-tools-6.0 clang-6.0-doc libclang-common-6.0-dev libclang-6.0-dev libclang1-6.0 libclang1-6.0-dbg clang-format-6.0 clang-tidy-6.0 python-clang-6.0 libllvm6.0 libllvm6.0-dbg lldb-6.0 liblldb-6.0-dev llvm-6.0 llvm-6.0-dev llvm-6.0-doc llvm-6.0-examples llvm-6.0-runtime llvm-6.0-tools lld-6.0 libfuzzer-6.0-dev

Check out Online Compiler

Advertisements

Join the Discussion

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Create a free website or blog at WordPress.com.

Up ↑

%d bloggers like this: