Updated bootstrap

This commit is contained in:
Alzim 2020-11-20 05:31:05 +03:00
parent 1fd3484a37
commit d676d513fc

View file

@ -379,12 +379,14 @@ rm -rf vendor/openssl-src/openssl/
# This only affects the transient rust-installer, but let it use our dynamic xz-libs
sed -i.lzma -e '/LZMA_API_STATIC/d' src/bootstrap/tool.rs
%if %{without bootstrap}
%if %{with llvm_static}
# Static linking to distro LLVM needs to add -lffi
# https://github.com/rust-lang/rust/issues/34486
sed -i.ffi -e '$a #[link(name = "ffi")] extern {}' \
src/librustc_llvm/lib.rs
%endif
%endif
# The configure macro will modify some autoconf-related files, which upsets
# cargo when it tries to verify checksums in those files. If we just truncate