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

morningman pushed a commit to branch dev-1.0.1
in repository https://gitbox.apache.org/repos/asf/incubator-doris.git

commit c492f418a5e82734383feeb425d7d029a660e0e3
Author: Adonis Ling <adonis0...@gmail.com>
AuthorDate: Mon Mar 28 10:24:32 2022 +0800

    [chore] Optimize build_lz4 in build-thirdparty.sh (#8653)
---
 thirdparty/build-thirdparty.sh | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/thirdparty/build-thirdparty.sh b/thirdparty/build-thirdparty.sh
index 4f175e9..3b7a108 100755
--- a/thirdparty/build-thirdparty.sh
+++ b/thirdparty/build-thirdparty.sh
@@ -427,6 +427,12 @@ build_lz4() {
     check_if_source_exist $LZ4_SOURCE
     cd $TP_SOURCE_DIR/$LZ4_SOURCE
 
+    # clean old symbolic links
+    local old_symbolic_links=('lz4c' 'lz4cat' 'unlz4')
+    for link in ${old_symbolic_links[@]}; do
+        rm -f "${TP_INSTALL_DIR}/bin/${link}"
+    done
+
     make -j $PARALLEL install PREFIX=$TP_INSTALL_DIR BUILD_SHARED=no\
     INCLUDEDIR=$TP_INCLUDE_DIR/lz4/
 }

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org
For additional commands, e-mail: commits-h...@doris.apache.org

Reply via email to