Skip to content

Commit

Permalink
Update dependency install script
Browse files Browse the repository at this point in the history
Signed-off-by: Bili Dong <qobilidop@gmail.com>
  • Loading branch information
qobilidop committed Jan 28, 2025
1 parent 77d8cf3 commit 0410960
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions build_tools/ubuntu_install_mlir_requirements.sh
Original file line number Diff line number Diff line change
@@ -1,22 +1,32 @@
#!/usr/bin/env bash
#
# Reference:
# - https://mlir.llvm.org/getting_started/
# - https://llvm.org/docs/GettingStarted.html#requirements

set -ex

# Install common build tools
sudo apt-get update
sudo apt-get install -y \
build-essential \
ccache \
clang \
lld \
ninja-build \
pkg-config \
python-is-python3 \
python3 \
python3-pip \
zlib1g-dev

python3-pip
pip install --upgrade \
cmake

# Install additional LLVM & MLIR dependencies
# https://llvm.org/docs/GettingStarted.html#requirements
# https://mlir.llvm.org/getting_started/
sudo apt-get install -y \
zlib1g-dev

# Install additional P4C dependencies
# https://github.com/p4lang/p4c/blob/main/README.md#ubuntu-dependencies
sudo apt-get install -y \
bison \
flex \
libboost-dev \
libboost-iostreams-dev \
libfl-dev

0 comments on commit 0410960

Please sign in to comment.