Skip to content

Commit c038e91

Browse files
committed
fix build
1 parent 3a2c08e commit c038e91

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/chain-libs/chain-vote/build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ const BACKEND_FLAG_P256K1: &str = "__internal_ex_backend_p256k1";
1313
const BACKEND_FLAG_RISTRETTO255: &str = "__internal_ex_backend_ristretto255";
1414

1515
fn main() {
16+
// Register the custom cfg for rustc
17+
println!("cargo:rustc-check-cfg=cfg(crypto_backend, values(\"__internal_ex_backend_p256k1\", \"__internal_ex_backend_ristretto255\"))");
1618
cfg_if::cfg_if! {
1719
if #[cfg(feature = "p256k1")] {
1820
println!("cargo:rustc-cfg=crypto_backend=\"{}\"", BACKEND_FLAG_P256K1);

0 commit comments

Comments
 (0)