Ignore:
Timestamp:
Dec 28, 2016, 7:21:28 PM (3 years ago)
Author:
nmedfort
Message:

Cleaned up memory leaks + some warning messages.

File:
1 edited

Legend:

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

    r5239 r5240  
    1010option(ENABLE_MULTIPLEXING "Compiling the Multiplexing Module")
    1111option(PRINT_TIMING_INFORMATION "Write compilation and execution timing information to standard error stream")
    12 
     12option(DISABLE_DUAL_ABI "Disable GCC Dual ABI support" OFF)
    1313find_package(LLVM REQUIRED CONFIG)
    1414
    15 message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION}")
    16 message(STATUS "Using LLVMConfig.cmake in: ${LLVM_DIR}")
     15message(STATUS "Found LLVM ${LLVM_PACKAGE_VERSION} in: ${LLVM_DIR}")
    1716set(CMAKE_MODULE_PATH "${CMAKE_MODULE_PATH};${CMAKE_CURRENT_SOURCE_DIR}/cmake") # ensure custom FindXYZ.cmake files are found
    1817
     
    135134ENDIF()
    136135
     136#Disable Dual ABI support
     137IF(DISABLE_DUAL_ABI)
     138SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -D_GLIBCXX_USE_CXX11_ABI=0")
     139ENDIF()
     140
    137141#Enable all warnings
    138142SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall")
     
    156160
    157161SET(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS} -O3 -DNDEBUG")
    158 SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -g") #  -fsanitize=address -fno-omit-frame-pointer
     162SET(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS} -g -fsanitize=address -fno-omit-frame-pointer") #
    159163
    160164add_test(
Note: See TracChangeset for help on using the changeset viewer.