Ignore:
Timestamp:
Jun 1, 2017, 1:00:08 PM (22 months ago)
Author:
nmedfort
Message:

Bug fix for memory check and issues found parsing internal 'files'. Added backtrace option from execinfo.h

File:
1 edited

Legend:

Unmodified
Added
Removed
  • icGREP/icgrep-devel/icgrep/CMakeLists.txt

    r5486 r5489  
    171171
    172172include(CheckIncludeFileCXX)
    173 CHECK_INCLUDE_FILE_CXX(sanitizer/asan_interface.h HAS_ADDRESS_SANITIZER)
    174 
    175173find_package(Libunwind)
    176174IF (LIBUNWIND_FOUND)
    177 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_LIBUNWIND")
     175SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAS_LIBUNWIND")
    178176include_directories(${LIBUNWIND_INCLUDE_DIR})
    179177target_link_libraries(CodeGen ${LIBUNWIND_LIBRARIES})
     178ELSE()
     179CHECK_INCLUDE_FILE_CXX(execinfo.h HAS_EXECINFO)
     180IF (HAS_EXECINFO)
     181SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAS_EXECINFO")
     182ENDIF()
    180183ENDIF()
    181184
     
    198201
    199202SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} ${CMAKE_CXX_FLAGS_DEBUG} -O1 -g -fno-omit-frame-pointer -fno-optimize-sibling-calls")
     203
     204CHECK_INCLUDE_FILE_CXX(sanitizer/asan_interface.h HAS_ADDRESS_SANITIZER)
    200205IF (HAS_ADDRESS_SANITIZER)
    201206SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} -DHAS_ADDRESS_SANITIZER -fsanitize=address")
Note: See TracChangeset for help on using the changeset viewer.