Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/cargo.mk
Show First 20 Lines • Show All 133 Lines • ▼ Show 20 Lines | |||||
.for libc in ${CARGO_CRATES:Mlibc-[0-9]*} | .for libc in ${CARGO_CRATES:Mlibc-[0-9]*} | ||||
# FreeBSD 12.0 changed ABI: r318736 and r320043 | # FreeBSD 12.0 changed ABI: r318736 and r320043 | ||||
# https://github.com/rust-lang/libc/commit/78f93220d70e | # https://github.com/rust-lang/libc/commit/78f93220d70e | ||||
# https://github.com/rust-lang/libc/commit/969ad2b73cdc | # https://github.com/rust-lang/libc/commit/969ad2b73cdc | ||||
_libc_VER= ${libc:C/.*-//} | _libc_VER= ${libc:C/.*-//} | ||||
. if ${_libc_VER:R:R} == 0 && (${_libc_VER:R:E} < 2 || ${_libc_VER:R:E} == 2 && ${_libc_VER:E} < 38) | . if ${_libc_VER:R:R} == 0 && (${_libc_VER:R:E} < 2 || ${_libc_VER:R:E} == 2 && ${_libc_VER:E} < 38) | ||||
DEV_WARNING+= "CARGO_CRATES=${libc} may be unstable on FreeBSD 12.0. Consider updating to the latest version (higher than 0.2.37)." | DEV_WARNING+= "CARGO_CRATES=${libc} may be unstable on FreeBSD 12.0. Consider updating to the latest version (higher than 0.2.37)." | ||||
. endif | . endif | ||||
. if ${_libc_VER:R:R} == 0 && (${_libc_VER:R:E} < 2 || ${_libc_VER:R:E} == 2 && ${_libc_VER:E} < 49) | |||||
DEV_WARNING+= "CARGO_CRATES=${libc} may be unstable on aarch64 or not build on armv6, armv7, powerpc64. Consider updating to the latest version (higher than 0.2.49)." | |||||
. endif | |||||
.undef _libc_VER | .undef _libc_VER | ||||
.endfor | .endfor | ||||
.if ${CARGO_CRATES:Mlibgit2-sys-[0-9]*} | .if ${CARGO_CRATES:Mlibgit2-sys-[0-9]*} | ||||
# Use the system's libgit2 instead of building the bundled version | # Use the system's libgit2 instead of building the bundled version | ||||
CARGO_ENV+= LIBGIT2_SYS_USE_PKG_CONFIG=1 | CARGO_ENV+= LIBGIT2_SYS_USE_PKG_CONFIG=1 | ||||
LIB_DEPENDS+= libgit2.so:devel/libgit2 | LIB_DEPENDS+= libgit2.so:devel/libgit2 | ||||
.endif | .endif | ||||
▲ Show 20 Lines • Show All 144 Lines • Show Last 20 Lines |