|
66 | 66 |
|
67 | 67 | # The default build directory. |
68 | 68 | #------------------------------------------------------------------------------ |
69 | | -BUILD_DIR="build-libbitcoin-node" |
| 69 | +BUILD_SRC_DIR="build-libbitcoin-node" |
70 | 70 |
|
71 | 71 | PRESUMED_CI_PROJECT_PATH=$(pwd) |
72 | 72 |
|
@@ -168,13 +168,13 @@ make_jobs() |
168 | 168 | shift 1 |
169 | 169 |
|
170 | 170 | VERBOSITY="" |
171 | | - if [[ DISPLAY_VERBOSE ]]; then |
| 171 | + if [[ $DISPLAY_VERBOSE ]]; then |
172 | 172 | VERBOSITY="VERBOSE=1" |
173 | 173 | fi |
174 | 174 |
|
175 | 175 | SEQUENTIAL=1 |
176 | 176 | # Avoid setting -j1 (causes problems on single threaded systems [TRAVIS]). |
177 | | - if [[ $JOBS > $SEQUENTIAL ]]; then |
| 177 | + if [[ $JOBS -gt $SEQUENTIAL ]]; then |
178 | 178 | make -j"$JOBS" "$@" $VERBOSITY |
179 | 179 | else |
180 | 180 | make "$@" $VERBOSITY |
@@ -279,7 +279,7 @@ parse_command_line_options() |
279 | 279 | (--build-secp256k1) BUILD_SECP256K1="yes";; |
280 | 280 |
|
281 | 281 | # Unique script options. |
282 | | - (--build-dir=*) BUILD_DIR="${OPTION#*=}";; |
| 282 | + (--build-dir=*) BUILD_SRC_DIR="${OPTION#*=}";; |
283 | 283 | (--preset=*) PRESET_ID="${OPTION#*=}";; |
284 | 284 |
|
285 | 285 | # Handle ndebug declarations due to disabled argument passthrough |
@@ -334,11 +334,6 @@ set_os_specific_compiler_settings() |
334 | 334 | else # Linux |
335 | 335 | STDLIB="stdc++" |
336 | 336 | fi |
337 | | - |
338 | | - if [[ ($OS == Darwin) && ($CC == clang*) ]]; then |
339 | | - CFLAGS="${CFLAGS} -DBOOST_NO_CXX98_FUNCTION_BASE" |
340 | | - CXXFLAGS="${CXXFLAGS} -DBOOST_NO_CXX98_FUNCTION_BASE" |
341 | | - fi |
342 | 337 | } |
343 | 338 |
|
344 | 339 | link_to_standard_library() |
@@ -520,7 +515,7 @@ display_configuration() |
520 | 515 | display_message "BUILD_BOOST : $BUILD_BOOST" |
521 | 516 | display_message "BUILD_SECP256K1 : $BUILD_SECP256K1" |
522 | 517 | display_message "BOOST_ROOT : $BOOST_ROOT" |
523 | | - display_message "BUILD_DIR : $BUILD_DIR" |
| 518 | + display_message "BUILD_SRC_DIR : $BUILD_SRC_DIR" |
524 | 519 | display_message "PRESET_ID : $PRESET_ID" |
525 | 520 | display_message "CUMULATIVE_FILTERED_ARGS : $CUMULATIVE_FILTERED_ARGS" |
526 | 521 | display_message "CUMULATIVE_FILTERED_ARGS_CMAKE : $CUMULATIVE_FILTERED_ARGS_CMAKE" |
@@ -1121,10 +1116,10 @@ BITCOIN_NODE_OPTIONS=( |
1121 | 1116 | display_configuration |
1122 | 1117 |
|
1123 | 1118 | if [[ ! ($CI == true) ]]; then |
1124 | | - create_directory "$BUILD_DIR" |
1125 | | - push_directory "$BUILD_DIR" |
| 1119 | + create_directory "$BUILD_SRC_DIR" |
| 1120 | + push_directory "$BUILD_SRC_DIR" |
1126 | 1121 | else |
1127 | | - push_directory "$BUILD_DIR" |
| 1122 | + push_directory "$BUILD_SRC_DIR" |
1128 | 1123 | fi |
1129 | 1124 |
|
1130 | 1125 | initialize_git |
|
0 commit comments