Skip to content

Commit

Permalink
fix: fc-cache segmentation fault on apple m3
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 committed Dec 30, 2023
1 parent 0ed1ec7 commit 2523ad7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions buildtools/scripts/build-fontconfig.sh
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ rm -rf fontconfig-2.12.6
tar -zxf fontconfig-2.12.6.tar.gz
cd fontconfig-2.12.6
./configure --prefix=${PROJECT_ROOT_PATH}/build --enable-static --disable-shared --enable-libxml2 --disable-docs

if [[ "$OSTYPE" == "darwin"* && $(uname -m) == "arm64" ]]; then
# disable fc-cache test to avoid segmentation fault on macosx arm64
sed -i'' -e "s/RUN_FC_CACHE_TEST = test/\#RUN_FC_CACHE_TEST = test/g" Makefile
sed -i'' -e "s/\#RUN_FC_CACHE_TEST = false/RUN_FC_CACHE_TEST = false/g" Makefile
fi

make ${MAKE_PARALLEL} && make install

# package sample fonts with bin
Expand Down

0 comments on commit 2523ad7

Please sign in to comment.