rust: minor additions, no rebuild required if you don't have libgit2 installed
This commit is contained in:
parent
17b71beadb
commit
c10d98fdce
@ -1,6 +1,6 @@
|
||||
untrusted comment: verify with /etc/ports/opt.pub
|
||||
RWSE3ohX2g5d/VP1RzRresw/Nu41ftKGa+OzGthahOdY8YUvQetJO/jbvfApam4AET4yCS8htCuqNBYIj+xRxcpswUW2YqRDGAo=
|
||||
SHA256 (Pkgfile) = 0733ae22874f65c3f7be07455c8d80f786be51d79014c9f4e94714c1fac466e7
|
||||
RWSE3ohX2g5d/VmHuQhgzj2VIeTpmRSzR/LekqFWKvqP97fllm9w8MGYsPfRFu566W4mIe0IYIxZs4BESyIfXe+cdQNxTdkElA8=
|
||||
SHA256 (Pkgfile) = ac7de0e556a103cf0f6fcbbc3c254e6aa7027bf91568e08e9c541fa4a024f5ef
|
||||
SHA256 (.footprint) = 1a9358f2baa5b4536ce9c19aa01051ccd3d455b597d457c22945b4b55f640ee2
|
||||
SHA256 (rustc-1.55.0-src.tar.xz) = aec85a7c1f40b7a40818a58ae13632f8a12cfaa4d3e2a10957d0e9d16dfdd556
|
||||
SHA256 (rust-std-1.54.0-x86_64-unknown-linux-gnu.tar.xz) = a22e19859b3c5032daac1633637546a986c51bdfa3ad0db6e394e6cc461f466b
|
||||
|
13
rust/Pkgfile
13
rust/Pkgfile
@ -74,8 +74,10 @@ cat <<- EOF > $SRC/config.toml
|
||||
# http://blog.llvm.org/2019/09/closing-gap-cross-language-lto-between.html
|
||||
# https://github.com/rust-lang/rust/issues/54872
|
||||
codegen-units-std = 1
|
||||
|
||||
debuginfo-level-std = 2
|
||||
codegen-tests = false
|
||||
|
||||
description = "CRUX"
|
||||
channel = "stable"
|
||||
parallel-compiler = true
|
||||
rpath = false
|
||||
@ -130,11 +132,12 @@ EOF
|
||||
mkdir "$PKGMK_SOURCE_DIR/rust" || true
|
||||
export CARGO_HOME="$PKGMK_SOURCE_DIR/rust"
|
||||
|
||||
if [ -e '/usr/bin/sccache' ]; then
|
||||
export RUSTC_WRAPPER='/usr/bin/sccache'
|
||||
export SCCACHE_IDLE_TIMEOUT='1500'
|
||||
fi
|
||||
if [ -e '/usr/bin/sccache' ]; then
|
||||
export RUSTC_WRAPPER='/usr/bin/sccache'
|
||||
export SCCACHE_IDLE_TIMEOUT='1500'
|
||||
fi
|
||||
|
||||
export LIBGIT2_NO_PKG_CONFIG=1
|
||||
export RUST_BACKTRACE=full
|
||||
/usr/bin/python3 ./x.py build --config="${SRC}"/config.toml -j ${JOBS-1}
|
||||
DESTDIR=$PKG /usr/bin/python3 ./x.py --config="${SRC}"/config.toml install
|
||||
|
Loading…
x
Reference in New Issue
Block a user