@@ -17,14 +17,14 @@ mkdir -p $PREFIX $PREFIX/lib $PREFIX/include
17
17
18
18
CMAKE_BUILD_TYPE=" Debug"
19
19
if [[ " $BUILD_RELEASE " == " 1" ]]; then
20
- CMAKE_BUILD_TYPE=" Release"
20
+ CMAKE_BUILD_TYPE=" Release"
21
21
fi
22
22
23
23
CPUS=1
24
24
if [[ " $OSTYPE " == " linux-gnu" * ]]; then
25
- CPUS=$( grep -c ^processor /proc/cpuinfo)
25
+ CPUS=$( grep -c ^processor /proc/cpuinfo)
26
26
elif [[ " $OSTYPE " == " darwin" * ]]; then
27
- CPUS=$( sysctl -n hw.ncpu)
27
+ CPUS=$( sysctl -n hw.ncpu)
28
28
fi
29
29
30
30
LEVELDB_VERSION=" 1.23"
@@ -50,12 +50,12 @@ mv NuRaft-${NURAFT_VERSION} "NuRaft-${NURAFT_VERSION}-${CMAKE_BUILD_TYPE}"
50
50
cd " NuRaft-${NURAFT_VERSION} -${CMAKE_BUILD_TYPE} "
51
51
./prepare.sh
52
52
if [[ " $BUILD_RELEASE " == " 1" ]]; then
53
- # If we're doing a release build, remove the examples and tests
54
- rm -rf examples tests
55
- mkdir examples
56
- mkdir tests
57
- touch examples/CMakeLists.txt
58
- touch tests/CMakeLists.txt
53
+ # If we're doing a release build, remove the examples and tests
54
+ rm -rf examples tests
55
+ mkdir examples
56
+ mkdir tests
57
+ touch examples/CMakeLists.txt
58
+ touch tests/CMakeLists.txt
59
59
fi
60
60
mkdir -p build
61
61
cd build
@@ -78,18 +78,18 @@ make INSTALL_TOP=$PREFIX install
78
78
cd ..
79
79
80
80
if [[ " $OSTYPE " != " darwin" * ]]; then
81
- # <NOTE> For Mac Silicon: this curl install creates problems for building tools/bench/parsec/evm/
82
- CURL_VERSION=" 7.83.1"
83
- wget https://curl.se/download/curl-${CURL_VERSION} .tar.gz
84
- rm -rf curl-${CURL_VERSION}
85
- tar xzvf curl-${CURL_VERSION} .tar.gz
86
- rm -rf curl-${CURL_VERSION} .tar.gz
87
- mkdir -p curl-${CURL_VERSION} /build
88
- cd curl-${CURL_VERSION} /build
89
- ../configure --prefix=" ${PREFIX} " --disable-shared --without-ssl --without-libpsl --without-libidn2 --without-brotli --without-zstd --without-zlib
90
- make -j$CPUS
91
- make install
92
- cd ../..
81
+ # <NOTE> For Mac Silicon: this curl install creates problems for building tools/bench/parsec/evm/
82
+ CURL_VERSION=" 7.83.1"
83
+ wget https://curl.se/download/curl-${CURL_VERSION} .tar.gz
84
+ rm -rf curl-${CURL_VERSION}
85
+ tar xzvf curl-${CURL_VERSION} .tar.gz
86
+ rm -rf curl-${CURL_VERSION} .tar.gz
87
+ mkdir -p curl-${CURL_VERSION} /build
88
+ cd curl-${CURL_VERSION} /build
89
+ ../configure --prefix=" ${PREFIX} " --disable-shared --without-ssl --without-libpsl --without-libidn2 --without-brotli --without-zstd --without-zlib
90
+ make -j$CPUS
91
+ make install
92
+ cd ../..
93
93
fi
94
94
95
95
JSONCPP_VERSION=" 1.9.5"
@@ -130,10 +130,10 @@ rm -rf evmc
130
130
mv ../evmc-${EVMC_VER} ./evmc
131
131
mkdir ./evmc/.git
132
132
if [[ " $OSTYPE " == " darwin" * ]]; then
133
- # Mac Silicon: clang 'ar' does not allow empty member list, fails w/ -DBUILD_SHARED_LIBS=OFF
134
- cmake -S . -B build -DCMAKE_INSTALL_PREFIX=" ${PREFIX} "
133
+ # Mac Silicon: clang 'ar' does not allow empty member list, fails w/ -DBUILD_SHARED_LIBS=OFF
134
+ cmake -S . -B build -DCMAKE_INSTALL_PREFIX=" ${PREFIX} "
135
135
else
136
- cmake -S . -B build -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=" ${PREFIX} "
136
+ cmake -S . -B build -DBUILD_SHARED_LIBS=OFF -DCMAKE_INSTALL_PREFIX=" ${PREFIX} "
137
137
fi
138
138
cmake --build build --parallel
139
139
cd build
0 commit comments