diff options
author | BenoƮt C | 2020-10-07 10:23:18 -0400 |
---|---|---|
committer | GitHub | 2020-10-07 10:23:18 -0400 |
commit | 46e2235e99a4ddd48392e7eaa9c2a52f6634fff9 (patch) | |
tree | e44bcc2d78ff29aff410aa634f257b614fff6b22 /PKGBUILD | |
parent | 0cf83622efacbb187d21dbd53300f62be6e54194 (diff) | |
download | aur-46e2235e99a4ddd48392e7eaa9c2a52f6634fff9.tar.gz |
Override rustup toolchain with stable
It is better to specify explicitly which toolchain to use when building with cargo because
- user may override default rustup toolchain with an incompatible one
- user may isolate builds / uses jails. Some AUR helpers are automating this (ie: [rua](https://github.com/vn971/rua#safety)). In such case following error may be produced and build fails: `error: no override and no default toolchain set`
Diffstat (limited to 'PKGBUILD')
-rw-r--r-- | PKGBUILD | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -27,6 +27,7 @@ build() { cd "${srcdir}/${pkgname}-${pkgver}" export CARGO_HOME="${srcdir}/${pkgname}/CARGO" export CFLAGS="-fcommon -fPIE" + export RUSTUP_TOOLCHAIN=stable cargo build --release } |