Fix: Compilation error of fribidi on macOS

Fribidi uses Meson, which auto-detects presence of ccache and uses it
when found. This could cause incorrect compilation results when doing
a cross-compilation to different platforms on the same machine.

Pass the typical configuration environment to the Meson setup, which
takes care of specifying deployment targets and architecture as the
compiler flags, preventing ccache from using result from a different
architecture.

This is similar to the Meson setup used for Harfbuzz and Epoxy.

Pull Request: https://projects.blender.org/blender/blender/pulls/123828
This commit is contained in:
Sergey Sharybin 2024-06-27 19:56:46 +02:00 committed by Sergey Sharybin
parent 39fe42fcac
commit 9e4d9295f0

@ -12,7 +12,7 @@ ExternalProject_Add(external_fribidi
DOWNLOAD_DIR ${DOWNLOAD_DIR}
PREFIX ${BUILD_DIR}/fribidi
CONFIGURE_COMMAND
CONFIGURE_COMMAND ${CONFIGURE_ENV} &&
${MESON} setup
--prefix ${LIBDIR}/fribidi
${MESON_BUILD_TYPE}