Revert bindgen usage

i10e
Arkady L. Shane 3 weeks ago
parent 091043b43a
commit 59f5add77e
Signed by: tigro
GPG Key ID: 1EC08A25C9DB2503

@ -1445,8 +1445,11 @@ export RUSTC_BOOTSTRAP=1
# set rustc version
rustc_version="$(rustc --version)"
# set rust bindgen root
rust_bindgen_root="$(which bindgen | sed 's#/bin/.*##')"
rust_sysroot_absolute="$(rustc --print sysroot)"
%if 0%{?rhel} == 8
rust_bindgen_root="$PWD%{_prefix}"
%else
rust_bindgen_root="%{_prefix}"
%endif
# set clang version
clang_version="$(clang --version | sed -n 's/clang version //p' | cut -d. -f1)"

Loading…
Cancel
Save