Skip to content

Commit 1364cb8

Browse files
committed
feat: compile srtp in Release profile
1 parent 848d110 commit 1364cb8

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

media/srtp/build.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,12 @@ fn build_and_link() {
2323
let openssl_dir = env::var("DEP_OPENSSL_INCLUDE").unwrap();
2424

2525
let dst = Config::new("libsrtp")
26+
.profile("Release")
2627
.define("ENABLE_OPENSSL", "ON")
2728
.define("LIBSRTP_TEST_APPS", "OFF")
2829
.define("OPENSSL_ROOT_DIR", openssl_dir)
30+
//
31+
.define("ENABLE_LTO", "ON")
2932
.build();
3033

3134
println!(

0 commit comments

Comments
 (0)