pitrou commented on code in PR #13661:
URL: https://github.com/apache/arrow/pull/13661#discussion_r926388097


##########
cpp/cmake_modules/SetupCxxFlags.cmake:
##########
@@ -597,25 +597,32 @@ endif()
 # For CMAKE_BUILD_TYPE=FastDebug
 #   Same as DEBUG, except with some optimizations on.
 # For CMAKE_BUILD_TYPE=Release
-#   -O3: Enable all compiler optimizations
+#   -O2: Enable all compiler optimizations
 #   Debug symbols are stripped for reduced binary size. Add
 #   -DARROW_CXXFLAGS="-g" to add them
+
 if(NOT MSVC)
+  string(REPLACE "-O3 -DNDEBUG" "" CMAKE_CXX_FLAGS_RELEASE 
"${CMAKE_CXX_FLAGS_RELEASE}")

Review Comment:
   Why remove `-DNDEBUG` here? 



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to