You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pegasus.apache.org by la...@apache.org on 2023/06/08 02:25:43 UTC

[incubator-pegasus] branch master updated: chore(build): separate the build directory of IWYU version (#1519)

This is an automated email from the ASF dual-hosted git repository.

laiyingchun pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-pegasus.git


The following commit(s) were added to refs/heads/master by this push:
     new a0881816f chore(build): separate the build directory of IWYU version (#1519)
a0881816f is described below

commit a0881816f90e53e8308dfa8d4546912394d6cdd6
Author: Yingchun Lai <la...@apache.org>
AuthorDate: Thu Jun 8 10:25:36 2023 +0800

    chore(build): separate the build directory of IWYU version (#1519)
    
    https://github.com/apache/incubator-pegasus/issues/1349
    
    Separate the build directory of IWYU version, then the IWYU/DEBUG/RELEASE
    version of build directories are independent and can be reused when rebuild,
    it would be helpful to reduce the rebuild time.
---
 run.sh | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/run.sh b/run.sh
index 58de1d52a..46164ef69 100755
--- a/run.sh
+++ b/run.sh
@@ -256,6 +256,11 @@ function run_build()
     echo "INFO: start build Pegasus..."
     BUILD_DIR="${BUILD_ROOT_DIR}/${BUILD_TYPE}_${SANITIZER}"
     BUILD_DIR=${BUILD_DIR%_*}
+
+    if [ ! -z "${IWYU}" ]; then
+        BUILD_DIR="${BUILD_DIR}_iwyu"
+    fi
+
     if [ "$CLEAR" == "YES" ]; then
         echo "Clear $BUILD_DIR ..."
         rm -rf $BUILD_DIR


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@pegasus.apache.org
For additional commands, e-mail: commits-help@pegasus.apache.org