You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by bh...@apache.org on 2020/07/30 17:47:41 UTC
[hbase-native-client] branch master updated: HBASE-24724:
Parallelize make with Yetus (#11)
This is an automated email from the ASF dual-hosted git repository.
bharathv pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hbase-native-client.git
The following commit(s) were added to refs/heads/master by this push:
new 7281fc6 HBASE-24724: Parallelize make with Yetus (#11)
7281fc6 is described below
commit 7281fc6e5be95dcfa6c42004dbbb41efdf0bf807
Author: Bharath Vissapragada <bh...@apache.org>
AuthorDate: Thu Jul 30 10:47:31 2020 -0700
HBASE-24724: Parallelize make with Yetus (#11)
Passes -j$(nproc) args to make compilation.
Signed-off-by: Josh Elser <el...@apache.org>
Signed-off-by: Marc Parisi <ph...@apache.org>
---
bin/hbase-native-client-personality.sh | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/bin/hbase-native-client-personality.sh b/bin/hbase-native-client-personality.sh
index 5324703..c87ff4f 100755
--- a/bin/hbase-native-client-personality.sh
+++ b/bin/hbase-native-client-personality.sh
@@ -74,6 +74,8 @@ function personality_globals
# shellcheck disable=SC2034
# Passed to cmake command using a custom personality.
CMAKE_ARGS="-DDOWNLOAD_DEPENDENCIES=ON"
+ # Passed to make compilation command.
+ MAKE_COMPILE_ARGS="-j$(nproc)"
# shellcheck disable=SC2034
# Expected by Yetus for compiling non-jvm projects.
JVM_REQUIRED=false
@@ -106,7 +108,10 @@ function personality_modules
local args
yetus_info "Personality: ${repostatus} ${testtype}"
clear_personality_queue
- if [[ "${testtype}" =~ CMakeLists.txt ]]; then
+ if [[ "${testtype}" =~ compile ]]; then
+ args=${MAKE_COMPILE_ARGS}
+ yetus_debug "Appending make compile args ${args}"
+ elif [[ "${testtype}" =~ CMakeLists.txt ]]; then
args=${CMAKE_ARGS}
yetus_debug "Appending CMake args ${args}"
fi