From fb8ee5798183e0f2ff8fa97ce7b892faa5cb6be6 Mon Sep 17 00:00:00 2001
From: lintao <lintao51@gmail.com>
Date: Wed, 20 Oct 2021 20:59:26 +0800
Subject: [PATCH] Allow to use the CEPCSW_BLDTOOL to specify the build tool is
 make or ninja in run.sh

---
 run.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/run.sh b/run.sh
index 991b9f17..dba9c8c8 100755
--- a/run.sh
+++ b/run.sh
@@ -30,6 +30,10 @@ function check-cepcsw-envvar() {
 function build-dir() {
     local blddir=build
 
+    if [ -n "${bldtool}" ]; then
+        blddir=${blddir}.${bldtool}
+    fi
+
     # If detect the extra env var, append it to the build dir
     if [ -n "${lcg_version}" ]; then
         blddir=${blddir}.${lcg_version}
@@ -65,6 +69,8 @@ function run-job() {
 lcg_platform=x86_64-centos7-gcc8-opt
 lcg_version=98.0.0
 
+bldtool=${CEPCSW_BLDTOOL} # make, ninja # set in env var
+
 check-cepcsw-envvar || exit -1
 
 check-working-builddir || exit -1
-- 
GitLab