From 0cf482f7572161257b322af72637242088c50e03 Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Fri, 4 Jan 2019 14:27:42 +0100 Subject: [PATCH] Move cbindgen installation to the build phase --- firefox.spec | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/firefox.spec b/firefox.spec index 957f2ae..674f100 100644 --- a/firefox.spec +++ b/firefox.spec @@ -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