Skip to content

Commit

Permalink
[misc] Remove debug info in release mode (#1021)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuanming-hu authored May 19, 2020
1 parent 660e973 commit 643cc46
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ FILE(WRITE ${CMAKE_CURRENT_LIST_DIR}/docs/version
)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
set(CMAKE_BUILD_TYPE "Release" CACHE STRING
"Choose the type of build, options are: Debug Release
RelWithDebInfo MinSizeRel."
FORCE)
Expand Down
4 changes: 0 additions & 4 deletions cmake/TaichiCXXFlags.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,3 @@ if (TI_USE_MPI)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTI_USE_MPI")
message("Using MPI")
endif ()

if (NOT WIN32)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g")
endif()

0 comments on commit 643cc46

Please sign in to comment.