From af7f0eaea8da7b063035875d2f263a6abc5aa771 Mon Sep 17 00:00:00 2001 From: Mingyu Chen Date: Sun, 3 Feb 2019 13:45:36 +0800 Subject: [PATCH] Add an environmental variable to decide whether to patch compiler-rt (#621) --- thirdparty/download-thirdparty.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/thirdparty/download-thirdparty.sh b/thirdparty/download-thirdparty.sh index fa5510cb52..2cce8caa31 100755 --- a/thirdparty/download-thirdparty.sh +++ b/thirdparty/download-thirdparty.sh @@ -252,7 +252,8 @@ echo "Finished patching $LIBEVENT_SOURCE" # cd - # echo "Finished patching $THRIFT_SOURCE" -if test "x$REPOSITORY_URL" != x; then +# this patch is only used inside Baidu +if test "x$PATCH_COMPILER_RT" == "xtrue"; then cd $TP_SOURCE_DIR/$COMPILER_RT_SOURCE if [ ! -f $PATCHED_MARK ]; then patch -p0 < $TP_PATCH_DIR/compiler-rt.patch