Add an environmental variable to decide whether to patch compiler-rt (#621)

This commit is contained in:
Mingyu Chen
2019-02-03 13:45:36 +08:00
committed by ZHAO Chun
parent 43133d08bf
commit af7f0eaea8

View File

@ -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