From d3e135e50809c783299f1cbda224bfbb1d7d4f79 Mon Sep 17 00:00:00 2001 From: Vinzenz Schroeter Date: Thu, 10 Oct 2024 22:07:55 +0200 Subject: [PATCH] add optimization to suppress gcc warning about not being able to apply hardening --- crates/servicepoint_binding_c/examples/lang_c/build.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/servicepoint_binding_c/examples/lang_c/build.rs b/crates/servicepoint_binding_c/examples/lang_c/build.rs index db090d4..4f92e1d 100644 --- a/crates/servicepoint_binding_c/examples/lang_c/build.rs +++ b/crates/servicepoint_binding_c/examples/lang_c/build.rs @@ -12,5 +12,6 @@ fn main() { let mut cc = cc::Build::new(); cc.file("src/main.c"); cc.include(&sp_include); + cc.opt_level(2); cc.compile("lang_c"); }