Skip to content

Commit

Permalink
remove CMAKE_CXX_FLAGS_DEBUG section
Browse files Browse the repository at this point in the history
  • Loading branch information
chapman39 committed Oct 8, 2024
1 parent ca154cf commit 1771162
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
2 changes: 0 additions & 2 deletions host-configs/[email protected]_hip.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ else()

endif()

set(CMAKE_CXX_FLAGS_DEBUG "-O1 -g -DNDEBUG" CACHE STRING "")

#------------------------------------------------------------------------------
# MPI
#------------------------------------------------------------------------------
Expand Down
2 changes: 0 additions & 2 deletions host-configs/[email protected]_hip.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ else()

endif()

set(CMAKE_CXX_FLAGS_DEBUG "-O1 -g -DNDEBUG" CACHE STRING "")

#------------------------------------------------------------------------------
# MPI
#------------------------------------------------------------------------------
Expand Down
10 changes: 0 additions & 10 deletions scripts/spack/packages/serac/package.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,16 +341,6 @@ def cache_name(self):
special_case,
)

def initconfig_compiler_entries(self):
spec = self.spec
entries = super().initconfig_compiler_entries()

# Add optimization flag workaround for Debug builds with cray compiler or newer HIP
if "+rocm" in spec:
entries.append(cmake_cache_string("CMAKE_CXX_FLAGS_DEBUG", "-O1 -g -DNDEBUG"))

return entries

def initconfig_hardware_entries(self):
spec = self.spec
entries = super(Serac, self).initconfig_hardware_entries()
Expand Down

0 comments on commit 1771162

Please sign in to comment.