File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -9,8 +9,8 @@ if [ ! -d "$BUILD_DIR" ]; then
9
9
mkdir bld
10
10
fi
11
11
12
- # cd $BASE_DIR
13
12
cd $BUILD_DIR
13
+
14
14
rm -rf CMakeCache.txt
15
15
sudo rm -rf CMakeFiles/*
16
16
@@ -27,17 +27,21 @@ elif [ "$1" = "--nc-st" ]; then
27
27
elif [ " $1 " = " --nc-st-od" ]; then
28
28
# Cache New-Orders, Order-Line, Stock and Orders pages
29
29
BUILD_FLAGS=" -DUNIV_NVDIMM_CACHE -DUNIV_NVDIMM_CACHE_ST -DUNIV_NVDIMM_CACHE_OD"
30
+ elif [ " $1 " = " --mtr" ]; then
31
+ # Cache New-Orders, Order-Line, Stock and Orders pages with mtr-logging enabled
32
+ BUILD_FLAGS=" -DUNIV_NVDIMM_CACHE -DUNIV_NVDIMM_CACHE_ST -DUNIV_NVDIMM_CACHE_OD -DUNIV_LOG_HEADER"
30
33
else
31
34
# Cache New-Orders and Order-Line pages (default)
32
35
BUILD_FLAGS=" -DUNIV_NVDIMM_CACHE"
33
36
fi
34
37
35
38
echo " Start build using $BUILD_FLAGS "
36
39
37
- cmake .. -DWITH_DEBUG=0 -DCMAKE_C_FLAGS=" $BUILD_FLAGS " -DCMAKE_CXX_FLAGS=" $BUILD_FLAGS " \
38
- -DDOWNLOAD_BOOST=ON -DWITH_BOOST=$BASE_DIR /boost -DENABLED_LOCAL_INFILE=1 -DCMAKE_INSTALL_PREFIX=$BUILD_DIR \
39
- -DWITH_RAPID=OFF
40
- # -DWITH_INNOBASE_STORAGE_ENGINE=1 -DWITH_ARCHIVE_STORAGE_ENGINE=1
40
+ cd $BASE_DIR
41
+
42
+ cmake -DWITH_DEBUG=0 -DCMAKE_C_FLAGS=" $BUILD_FLAGS " -DCMAKE_CXX_FLAGS=" $BUILD_FLAGS " \
43
+ -DDOWNLOAD_BOOST=ON -DWITH_BOOST=$BASE_DIR /boost -DENABLED_LOCAL_INFILE=1 \
44
+ -DCMAKE_INSTALL_PREFIX=$BUILD_DIR
41
45
42
46
make -j8
43
47
sudo make install
You can’t perform that action at this time.
0 commit comments