[meson] Set meson buildtype to release
authorParichay Kapoor <pk.kapoor@samsung.com>
Fri, 5 Feb 2021 07:49:36 +0000 (16:49 +0900)
committerJijoong Moon <jijoong.moon@samsung.com>
Tue, 2 Mar 2021 05:01:10 +0000 (14:01 +0900)
Setting -O optimization manually gives meson warnings.
Instead update meson buildtype to release
This sets debug to 0 and optimization to level 3.

Signed-off-by: Parichay Kapoor <pk.kapoor@samsung.com>
meson.build

index 382b83e..f191999 100644 (file)
@@ -6,7 +6,8 @@ project('nntrainer', 'c', 'cpp',
     'werror=true',
     'warning_level=1',
     'c_std=gnu89',
-    'cpp_std=c++14'
+    'cpp_std=c++14',
+    'buildtype=release'
   ]
 )
 add_project_arguments('-DMIN_CPP_VERSION=201402', language:['c','cpp'])
@@ -37,7 +38,6 @@ warning_flags = [
   '-Wvla',
   '-Wpointer-arith',
   '-Wno-error=varargs',
-  '-O2',
   '-ftree-vectorize'
 ]