Skip to content

Commit

Permalink
fix: build error on m3 refer to #39
Browse files Browse the repository at this point in the history
  • Loading branch information
wangyoucao577 committed Feb 2, 2024
1 parent ec6a988 commit 276bc98
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions buildtools/scripts/build-fontconfig.sh
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
2 changes: 1 addition & 1 deletion buildtools/scripts/build-soxr.sh
Expand Up @@ -21,7 +21,7 @@ set -x
rm -rf ./Release && mkdir -p Release && cd Release
cmake .. "${PREFERRED_CMAKE_GERERATOR}" \
-DCMAKE_INSTALL_PREFIX=${PROJECT_ROOT_PATH}/build \
-Wno-dev -DWITH_OPENMP=OFF -DCMAKE_BUILD_TYPE=Release \
-Wno-dev -DWITH_OPENMP=OFF -DWITH_CR32S=OFF -DCMAKE_BUILD_TYPE=Release \
-DBUILD_SHARED_LIBS=OFF -DBUILD_TESTS=OFF
cmake --build . ${MAKE_PARALLEL} && cmake --install .
set +x
Expand Down

0 comments on commit 276bc98

Please sign in to comment.