-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
executable file
·33 lines (27 loc) · 1.05 KB
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/bin/bash
LLVM_INSTALL_DIR=""
echo "--------------------------------------------------------------------------------"
if [ ! -e "build" ]
then
echo "Creating build directory"
mkdir -p build
echo "--------------------------------------------------------------------------------"
echo "Building the CFG printer pass"
cd build
cmake -DLLVM_INSTALL_DIR=$LLVM_INSTALL_DIR -G "Unix Makefiles" ..
cmake --build .
cd ..
echo "--------------------------------------------------------------------------------"
echo "Done"
echo "--------------------------------------------------------------------------------"
else
echo "Build directory already exists"
echo "--------------------------------------------------------------------------------"
echo "Updating the CFG printer pass"
cd build
cmake --build .
cd ..
echo "--------------------------------------------------------------------------------"
echo "Done"
echo "--------------------------------------------------------------------------------"
fi