You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
779 B

  1. diff --git a/yarpl/CMakeLists.txt b/yarpl/CMakeLists.txt
  2. --- a/yarpl/CMakeLists.txt Fri May 03 07:45:18 2019 -0700
  3. +++ b/yarpl/CMakeLists.txt Tue May 07 02:03:23 2019 -0700
  4. @@ -21,7 +21,11 @@
  5. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wno-unused-parameter")
  6. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-weak-vtables -Wno-padded")
  7. set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fno-omit-frame-pointer")
  8. - set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -momit-leaf-frame-pointer")
  9. + include(CheckCXXCompilerFlag)
  10. + CHECK_CXX_COMPILER_FLAG("-momit-leaf-frame-pointer" HAVE_OMIT_LEAF_FRAME_POINTER)
  11. + if(HAVE_OMIT_LEAF_FRAME_POINTER)
  12. + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -momit-leaf-frame-pointer")
  13. + endif()
  14. endif()
  15. if(YARPL_WRAP_SHARED_IN_LOCK)