aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunfeng Wang <drenfong.wang@intel.com>2020-08-03 11:22:09 +0800
committerJunfeng Wang <drenfong.wang@intel.com>2020-08-03 04:18:14 +0000
commitf6068e1e7840f1e3418e9d8b68765266e241a001 (patch)
tree0a226f1d49fa752b81619502aa69b17f1568481a
parent263245f9b42bf5eb0f0d6d0b7921ba4496c06599 (diff)
modify compile argsstable/2001
Change-Id: Ic7413e39d2fc217a2f3f4df9970df1e2933f7e77 Signed-off-by: Junfeng Wang <drenfong.wang@intel.com>
-rw-r--r--CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index cb70d38..2d7b71b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -88,7 +88,7 @@ endif (NOT CMAKE_BUILD_TYPE)
SET(UDPI_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR} CACHE STRING "udpi_install_prefix")
if (CMAKE_BUILD_TYPE STREQUAL "Release")
- set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall -march=native -O3 -g")
+ set(CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS_RELEASE} -Wall -march=native -O0 -g")
elseif (CMAKE_BUILD_TYPE STREQUAL "Debug")
set(CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS_DEBUG} -Wall -march=native -O0 -g")
add_definitions(-DCLIB_DEBUG -fPIC -fstack-protector-all)