rust: fix if rust is broken on llvm dynamic or static fix

This commit is contained in:
Danny Rawlins 2020-04-26 18:59:40 +10:00
parent 85886e693c
commit 1cf27473d3
2 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
untrusted comment: verify with /etc/ports/opt.pub
RWSE3ohX2g5d/WBbsEvy0bvPn/zPa1slK6Dlnl9wO/3/LGBKxTlgIkX4lsvZFn63gptpfGiwQJB9zrvG7m3HoPBFF7kcVnUbAQc=
SHA256 (Pkgfile) = aa42f8acfe74ef8e1c1b368d4794e53ccf39f74f56245c2090eb0b7aad161a71
RWSE3ohX2g5d/fwKskuAmOrrnJSUr51a3nTApEmXs56rbCODgcDewIMGXPaSKpRpLHqh6jETLEzTL+iowstQDOsxImx6XHOKzQI=
SHA256 (Pkgfile) = 34239300aa53afc290ce07d525e657e495572fbd40bcc4578eddbcad1948763d
SHA256 (.footprint) = 267150201a9d48fcf695983ad869396c9b65629d547a8fc63c513df68d0fb707
SHA256 (rustc-1.42.0-src.tar.xz) = aa5b4c0f2bac33cc26a11523fce9b0f120d2eff510ed148ae7c586501481ed04
SHA256 (rust-std-1.41.1-x86_64-unknown-linux-gnu.tar.xz) = 8e0d2ccfaaeec2e2007b3a605e2bf1dac2e2c82a8d4168bf4e81c9dd5374214e

View File

@ -82,8 +82,8 @@ cat <<- EOF > $SRC/config.toml
python = "python3"
EOF
# part of [build] options
if [ -e '/usr/bin/rustc' ]; then
if [ -z "$(/usr/bin/ldd /usr/bin/rustc | egrep '.*libLLVM-.*.so => not found')" ]; then
if [ -e '/usr/bin/rustc' ]; then
if [ -z "$(/usr/bin/ldd /usr/bin/rustc | egrep '.*libLLVM.*.so => not found')" ]; then
cat <<- EOF >> $SRC/config.toml
cargo = "/usr/bin/cargo"
rustc = "/usr/bin/rustc"