set correct rust_bindgen_root for el8

epel8
Than Ngo 2 months ago
parent c3dc494bbb
commit a00f39b974

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

Loading…
Cancel
Save