# The osmesa-src build which we do as part of the headless build below # doesn't seem to always use CFLAGS/CXXFLAGS where expected. Instead we # just squash those flags into CC/CXX and everything works out. # Export HOST_CC and HOST_CXX without the squashed flags, so that host # builds use them and don't see the target flags. export HOST_CC="${CC}" export HOST_CXX="${CXX}"
CFLAGS_VAR="CFLAGS_${TARGET_TRIPLE//-/_}"
CXXFLAGS_VAR="CXXFLAGS_${TARGET_TRIPLE//-/_}" export CC="${CC} ${!CFLAGS_VAR}" export ${CFLAGS_VAR}= export CXX="${CXX} ${!CXXFLAGS_VAR}" export ${CXXFLAGS_VAR}=
# Do a cross-build without the `headless` feature
pushd "${GECKO_PATH}/gfx/wr/wrench"
python3 -m pip install -r ../ci-scripts/requirements.txt
cargo build --release -vv --frozen --target=${TARGET_TRIPLE} # Package up the resulting wrench binary
cd "../target/${TARGET_TRIPLE}"
mkdir -p wrench-macos/bin
mv release/wrench wrench-macos/bin/
tar cjf wrench-macos.tar.bz2 wrench-macos
mv wrench-macos.tar.bz2 "${UPLOAD_DIR}" # Clean the build
cd "${GECKO_PATH}/gfx/wr" rm -rf target
popd
# Do a cross-build with the `headless` feature
pushd "${GECKO_PATH}/gfx/wr/wrench"
cargo build --release -vv --frozen --target=${TARGET_TRIPLE} --features headless # Package up the wrench binary and some libraries that we will need
cd "../target/${TARGET_TRIPLE}"
# Copy the native macOS libLLVM as dynamic dependency cp"${MOZ_FETCHES_DIR}/clang-mac/clang/lib/libLLVM.dylib" release/build/osmesa-src*/out/mesa/src/gallium/targets/osmesa/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.