Skip to content
This repository was archived by the owner on Feb 25, 2021. It is now read-only.

Commit 9b51ed3

Browse files
authored
Merge pull request BlockstreamResearch#35 from rust-bitcoin/2018-07-secp-build-flags
build.rs: change build flags to eliminate compiler warnings
2 parents 49ea989 + a9f479c commit 9b51ed3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

build.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ fn main() {
2929
.include("depend/secp256k1/include")
3030
.include("depend/secp256k1/src")
3131
.flag("-g")
32+
.flag("-Wno-unused-function") // some ecmult stuff is defined but not used upstream
33+
.define("SECP256K1_BUILD", Some("1"))
3234
// TODO these three should be changed to use libgmp, at least until secp PR 290 is merged
3335
.define("USE_NUM_NONE", Some("1"))
3436
.define("USE_FIELD_INV_BUILTIN", Some("1"))

0 commit comments

Comments
 (0)