|
|
|
@@ -1,11 +1,44 @@ |
|
|
|
diff -Npur glog/CMakeLists.txt glog_modify/CMakeLists.txt |
|
|
|
diff -Npur glog/CMakeLists.txt glog-patch/CMakeLists.txt |
|
|
|
--- glog/CMakeLists.txt 2019-03-22 10:51:46.000000000 +0800 |
|
|
|
+++ glog_modify/CMakeLists.txt 2021-03-07 16:58:38.386879400 +0800 |
|
|
|
@@ -470,6 +470,7 @@ add_library (glog |
|
|
|
+++ glog-patch/CMakeLists.txt 2021-04-01 10:32:25.753140500 +0800 |
|
|
|
@@ -64,7 +64,6 @@ check_include_file (dlfcn.h HAVE_DLFCN_H |
|
|
|
check_include_file (execinfo.h HAVE_EXECINFO_H) |
|
|
|
check_include_file (glob.h HAVE_GLOB_H) |
|
|
|
check_include_file (inttypes.h HAVE_INTTYPES_H) |
|
|
|
-check_include_file (libunwind.h HAVE_LIBUNWIND_H) |
|
|
|
check_include_file (memory.h HAVE_MEMORY_H) |
|
|
|
check_include_file (pwd.h HAVE_PWD_H) |
|
|
|
check_include_file (stdint.h HAVE_STDINT_H) |
|
|
|
@@ -80,7 +79,6 @@ check_include_file (syscall.h HAVE_SYSCA |
|
|
|
check_include_file (syslog.h HAVE_SYSLOG_H) |
|
|
|
check_include_file (ucontext.h HAVE_UCONTEXT_H) |
|
|
|
check_include_file (unistd.h HAVE_UNISTD_H) |
|
|
|
-check_include_file (unwind.h HAVE_UNWIND_H) |
|
|
|
check_include_file (pwd.h HAVE_PWD_H) |
|
|
|
|
|
|
|
check_include_file_cxx ("ext/hash_map" HAVE_EXT_HASH_MAP) |
|
|
|
@@ -116,12 +114,8 @@ check_cxx_compiler_flag (-Wunnamed-type- |
|
|
|
# snprintf as an inline function |
|
|
|
check_symbol_exists (snprintf stdio.h HAVE_SNPRINTF) |
|
|
|
|
|
|
|
-check_library_exists (unwind get_static_proc_name "" HAVE_LIB_UNWIND) |
|
|
|
check_library_exists (dbghelp UnDecorateSymbolName "" HAVE_DBGHELP) |
|
|
|
|
|
|
|
-find_library (UNWIND_LIBRARY NAMES unwind DOC "unwind library") |
|
|
|
-mark_as_advanced (UNWIND_LIBRARY) |
|
|
|
- |
|
|
|
check_c_source_compiles (" |
|
|
|
#include <stdlib.h> |
|
|
|
static void foo(void) __attribute__ ((unused)); |
|
|
|
@@ -470,10 +464,7 @@ add_library (glog |
|
|
|
add_library(glog::glog ALIAS glog) |
|
|
|
|
|
|
|
set_target_properties (glog PROPERTIES POSITION_INDEPENDENT_CODE ON) |
|
|
|
- |
|
|
|
-if (UNWIND_LIBRARY) |
|
|
|
- target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY}) |
|
|
|
-endif (UNWIND_LIBRARY) |
|
|
|
+set_target_properties (glog PROPERTIES OUTPUT_NAME mindspore_glog) |
|
|
|
|
|
|
|
if (UNWIND_LIBRARY) |
|
|
|
target_link_libraries (glog PUBLIC ${UNWIND_LIBRARY}) |
|
|
|
if (HAVE_DBGHELP) |
|
|
|
target_link_libraries (glog PUBLIC dbghelp) |