projects
/
platform
/
upstream
/
rust-num-integer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0b2e644
)
Add build.rs config to rustc
accepted/tizen_rust
tizen
accepted/tizen/rust/20231016.021519
author
DongHun Kwak
<dh0128.kwak@samsung.com>
Thu, 6 Apr 2023 06:24:48 +0000
(15:24 +0900)
committer
DongHun Kwak
<dh0128.kwak@samsung.com>
Thu, 6 Apr 2023 06:24:48 +0000
(15:24 +0900)
packaging/rust-num-integer.spec
patch
|
blob
|
history
diff --git
a/packaging/rust-num-integer.spec
b/packaging/rust-num-integer.spec
index a2daaff716f3fd8bc2b64ba49e55957c16711be6..f2dc877e84230b8e2ab201518b5f2f621cc22dad 100644
(file)
--- a/
packaging/rust-num-integer.spec
+++ b/
packaging/rust-num-integer.spec
@@
-47,11
+47,13
@@
mkdir -p $OUT_DIR
--cfg='feature="i128"' \
./build.rs
./build_rs_binary
+export _RUSTC_BUILD_RS_CONFIG_=$(./build_rs_binary | grep "cargo:rustc-cfg" | sed "s/cargo:rustc-cfg=/--cfg=/g" | sed "s/$/ /g" | tr -d '\n')
%{rustc_std_build} --crate-type=dylib \
--crate-name=%{real_crate_name} \
%{?rustc_edition:--edition=%{rustc_edition}} \
--cfg='feature="std"' \
--cfg='feature="i128"' \
+ $_RUSTC_BUILD_RS_CONFIG_ \
./src/lib.rs
# ==========================================================