From 39953664edfe0d3bebc7e0ea9b2605bbdaaf9b4e Mon Sep 17 00:00:00 2001 From: Jacob Rosenthal Date: Tue, 17 Nov 2020 20:47:22 -0700 Subject: [PATCH] build in release mode --- build.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build.rs b/build.rs index 3c31112..5deb8b7 100644 --- a/build.rs +++ b/build.rs @@ -167,6 +167,8 @@ trait CompilationBuilder { .flag("-fno-use-cxa-atexit") // use a full word for enums, this should match clang's behaviour .flag("-fno-short-enums") + .define("NDEBUG", None) + .define("TF_LITE_STRIP_ERROR_STRINGS", None) .define("TF_LITE_STATIC_MEMORY", None) .define("TF_LITE_MCU_DEBUG_LOG", None) .define("GEMMLOWP_ALLOW_SLOW_SCALAR_FALLBACK", None);