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

glog.patch001 1.8 kB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. diff -Npur glog/CMakeLists.txt glog-patch/CMakeLists.txt
  2. --- glog/CMakeLists.txt 2019-03-22 10:51:46.000000000 +0800
  3. +++ glog-patch/CMakeLists.txt 2021-04-01 10:32:25.753140500 +0800
  4. @@ -64,7 +64,6 @@ check_include_file (dlfcn.h HAVE_DLFCN_H
  5. check_include_file (execinfo.h HAVE_EXECINFO_H)
  6. check_include_file (glob.h HAVE_GLOB_H)
  7. check_include_file (inttypes.h HAVE_INTTYPES_H)
  8. -check_include_file (libunwind.h HAVE_LIBUNWIND_H)
  9. check_include_file (memory.h HAVE_MEMORY_H)
  10. check_include_file (pwd.h HAVE_PWD_H)
  11. check_include_file (stdint.h HAVE_STDINT_H)
  12. @@ -80,7 +79,6 @@ check_include_file (syscall.h HAVE_SYSCA
  13. check_include_file (syslog.h HAVE_SYSLOG_H)
  14. check_include_file (ucontext.h HAVE_UCONTEXT_H)
  15. check_include_file (unistd.h HAVE_UNISTD_H)
  16. -check_include_file (unwind.h HAVE_UNWIND_H)
  17. check_include_file (pwd.h HAVE_PWD_H)
  18. check_include_file_cxx ("ext/hash_map" HAVE_EXT_HASH_MAP)
  19. @@ -116,12 +114,8 @@ check_cxx_compiler_flag (-Wunnamed-type-
  20. # snprintf as an inline function
  21. check_symbol_exists (snprintf stdio.h HAVE_SNPRINTF)
  22. -check_library_exists (unwind get_static_proc_name "" HAVE_LIB_UNWIND)
  23. check_library_exists (dbghelp UnDecorateSymbolName "" HAVE_DBGHELP)
  24. -find_library (UNWIND_LIBRARY NAMES unwind DOC "unwind library")
  25. -mark_as_advanced (UNWIND_LIBRARY)
  26. -
  27. check_c_source_compiles ("
  28. #include <stdlib.h>
  29. static void foo(void) __attribute__ ((unused));
  30. @@ -470,10 +464,7 @@ add_library (glog
  31. add_library(glog::glog ALIAS glog)
  32. set_target_properties (glog PROPERTIES POSITION_INDEPENDENT_CODE ON)
  33. -
  34. -if (UNWIND_LIBRARY)
  35. - target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY})
  36. -endif (UNWIND_LIBRARY)
  37. +set_target_properties (glog PROPERTIES OUTPUT_NAME mindspore_glog)
  38. if (HAVE_DBGHELP)
  39. target_link_libraries (glog PUBLIC dbghelp)