-
Notifications
You must be signed in to change notification settings - Fork 33
/
configure.sh
executable file
·49 lines (46 loc) · 1.42 KB
/
configure.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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/bash
echo "Configuring Scattered Containers..."
#./tools/cleanup.sh
export CMAKE_FLAGS="-DCMAKE_C_COMPILER=clang -DCMAKE_CXX_COMPILER=clang++ \
-DLIBCXX_INCLUDE_DIR=\"${LIBCXX_INCLUDE}\" -DLIBCXX_LIBRARY=\"${LIBCXX_LIB}\" \
-DBOOST_DIRS=\"~/Users/gnzlbg/Downloads/boost_1_54_0/boost\""
echo "Running cmake..."
while getopts "dramthx" option
do
case "${option}" in
h)
echo "Following build modes are available:"
echo "-d Debug"
echo "-r Release"
echo "-a Asan"
echo "-m Msan"
echo "-t Tsan"
exit 1
;;
d)
eval "cmake $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Debug"
echo "... debug configuration finished!"
exit 1
;;
r)
eval "cmake $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Release"
echo "... release configuration finished!"
exit 1
;;
a)
eval "cmake $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Asan"
echo "... ASan configuration finished!"
exit 1
;;
m)
eval "cmake $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Msan"
echo "... MSan configuration finished!"
exit 1
;;
t)
eval "cmake $CMAKE_FLAGS -DCMAKE_BUILD_TYPE=Tsan"
echo "... TSan configuration finished!"
exit 1
;;
esac
done