Merge rust-bitcoin/rust-secp256k1#536: secp256k1-sys: Remove unused flags in build.rs
7d3dc354d7
secp256k1-sys: Remove unused flags in build.rs (Elichai Turkel) Pull request description: These are no longer used in upstream, so there's no reason for us to set them ACKs for top commit: apoelstra: ACK7d3dc354d7
Tree-SHA512: 79ecbed19ba9eb61640306bc5413b139e902ee84b7e122e8ae57e451f2b132371440554f21ed075ed34d9d702c4316e4b170ca638c774532ecf5a11456b4e2ad
This commit is contained in:
commit
e4baf79deb
|
@ -35,11 +35,7 @@ fn main() {
|
||||||
.define("SECP256K1_API", Some(""))
|
.define("SECP256K1_API", Some(""))
|
||||||
.define("ENABLE_MODULE_ECDH", Some("1"))
|
.define("ENABLE_MODULE_ECDH", Some("1"))
|
||||||
.define("ENABLE_MODULE_SCHNORRSIG", Some("1"))
|
.define("ENABLE_MODULE_SCHNORRSIG", Some("1"))
|
||||||
.define("ENABLE_MODULE_EXTRAKEYS", Some("1"))
|
.define("ENABLE_MODULE_EXTRAKEYS", Some("1"));
|
||||||
// TODO these three should be changed to use libgmp, at least until secp PR 290 is merged
|
|
||||||
.define("USE_NUM_NONE", Some("1"))
|
|
||||||
.define("USE_FIELD_INV_BUILTIN", Some("1"))
|
|
||||||
.define("USE_SCALAR_INV_BUILTIN", Some("1"));
|
|
||||||
|
|
||||||
if cfg!(feature = "lowmemory") {
|
if cfg!(feature = "lowmemory") {
|
||||||
base_config.define("ECMULT_WINDOW_SIZE", Some("4")); // A low-enough value to consume negligible memory
|
base_config.define("ECMULT_WINDOW_SIZE", Some("4")); // A low-enough value to consume negligible memory
|
||||||
|
|
Loading…
Reference in New Issue