Move cbindgen installation to the build phase

This commit is contained in:
Jan Horak 2019-01-04 14:27:42 +01:00
parent ea5307de1a
commit 0cf482f757

View File

@ -443,6 +443,9 @@ echo "ac_add_options --disable-ion" >> .mozconfig
# Remove executable bit to make brp-mangle-shebangs happy.
chmod -x third_party/rust/itertools/src/lib.rs
#---------------------------------------------------------------------
%build
%if 0%{?use_bundled_cbindgen}
mkdir -p my_rust_vendor
@ -459,11 +462,6 @@ directory = "`pwd`/my_rust_vendor"
EOL
env CARGO_HOME=.cargo cargo install cbindgen
%endif
#---------------------------------------------------------------------
%build
%if 0%{?use_bundled_cbindgen}
export PATH=`pwd`/.cargo/bin:$PATH
%endif