-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·60 lines (44 loc) · 1.34 KB
/
setup.sh
File metadata and controls
executable file
·60 lines (44 loc) · 1.34 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
#!/bin/bash
#####################################################################
#
# This file is licensed under the University of Illinois/NCSA Open
# Source License. See LICENSE.TXT for details.
#
#####################################################################
#####################################################################
#
# Name: setup.sh
#
# Description: Sets up and and reconfigures existing LLVM build,
# $LLVM_PATH, with the fault injector FlitIt,
# $SDCPROP_PATH.
#
#####################################################################
# setup.sh
# Build instrumentation library
echo "
Building the instrumentation library..."
cd $SDCPROP_PATH
mkdir $SDCPROP_PATH/lib
cd $SDCPROP_PATH/scripts/
./library.sh
echo "
Making bitcode header."
./genBC.py
# Include directory for easier compilation
mkdir $SDCPROP_PATH/include/
ln -s -f $SDCPROP_PATH/src/instrumentation/Instrumentation.h $SDCPROP_PATH/include/
ln -s -f $SDCPROP_PATH/src/instrumentation/Instrumentation.bc $SDCPROP_PATH/include/
ln -s -f $SDCPROP_PATH/src/instrumentation/Types.h $SDCPROP_PATH/include/
echo "Done!"
echo "
Creating pass..."
cd $SDCPROP_PATH/scripts/
./findLLVMHeaders.py $SDCPROP_PATH/src/pass/SDCProp.h
cd $SDCPROP_PATH/src/pass
make clean -f Makefile
make -f Makefile
cp *.so $SDCPROP_PATH/lib/
echo "Done!"
echo "
Build Finished."