diff options
author | Tim Biermann <tbier@posteo.de> | 2021-10-03 15:57:36 +0200 |
---|---|---|
committer | Tim Biermann <tbier@posteo.de> | 2021-10-03 15:57:36 +0200 |
commit | c10d98fdce3aa63352f2845eb021c03d8deb9f8e (patch) | |
tree | b6eaf35726a610cb13b16a8e1798c8edfdb40bbc /rust | |
parent | 17b71beadb3f2b1affcc9e865735c5ed978541ac (diff) | |
download | opt-c10d98fdce3aa63352f2845eb021c03d8deb9f8e.tar.gz opt-c10d98fdce3aa63352f2845eb021c03d8deb9f8e.tar.xz |
rust: minor additions, no rebuild required if you don't have libgit2 installed
Diffstat (limited to 'rust')
-rw-r--r-- | rust/.signature | 4 | ||||
-rw-r--r-- | rust/Pkgfile | 13 |
2 files changed, 10 insertions, 7 deletions
diff --git a/rust/.signature b/rust/.signature index e3144e73f..9320b3298 100644 --- a/rust/.signature +++ b/rust/.signature @@ -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 diff --git a/rust/Pkgfile b/rust/Pkgfile index 7f09b9043..47d656e8b 100644 --- a/rust/Pkgfile +++ b/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 |