已合并
fix runtime log symbol bug #1686
dongjiangtao创建于 4月21日
fix runtime log symbol bug #1686
已合并
dongjiangtao创建于 4月21日
共 3 个文件变更+3-6
@@ -416,7 +416,6 @@ macro(add_runtime_common_library target_name)
416 )416 )
417 417 
418 target_compile_definitions(${target_name} PRIVATE418 target_compile_definitions(${target_name} PRIVATE
419- LOG_CPP
420 -DSTATIC_RT_LIB=0419 -DSTATIC_RT_LIB=0
421 -DRUNTIME_API=0420 -DRUNTIME_API=0
422 )421 )
@@ -500,7 +499,6 @@ macro(add_runtime_api_library target_name)
500 )499 )
501 500 
502 target_compile_definitions(${target_name} PRIVATE501 target_compile_definitions(${target_name} PRIVATE
503- LOG_CPP
504 -DSTATIC_RT_LIB=0 # set 1 when not split so502 -DSTATIC_RT_LIB=0 # set 1 when not split so
505 -DRUNTIME_API=1 # set 1 when split so and in libruntime.so503 -DRUNTIME_API=1 # set 1 when split so and in libruntime.so
506 )504 )
@@ -600,7 +598,6 @@ macro(add_runtime_v100_library target_name)
600 )598 )
601 599 
602 target_compile_definitions(${target_name} PRIVATE600 target_compile_definitions(${target_name} PRIVATE
603- LOG_CPP
604 -DSTATIC_RT_LIB=0601 -DSTATIC_RT_LIB=0
605 -DRUNTIME_API=0602 -DRUNTIME_API=0
606 )603 )
@@ -527,7 +527,6 @@ macro(add_runtime_v200_library target_name)
527 endif()527 endif()
528 528 
529 target_compile_definitions(${target_name} PRIVATE529 target_compile_definitions(${target_name} PRIVATE
530- LOG_CPP
531 -DSTATIC_RT_LIB=0530 -DSTATIC_RT_LIB=0
532 -DRUNTIME_API=0531 -DRUNTIME_API=0
533 )532 )
@@ -635,7 +634,6 @@ macro(add_runtime_v201_library target_name)
635 endif()634 endif()
636 635 
637 target_compile_definitions(${target_name} PRIVATE636 target_compile_definitions(${target_name} PRIVATE
638- LOG_CPP
639 -DSTATIC_RT_LIB=0637 -DSTATIC_RT_LIB=0
640 -DRUNTIME_API=0638 -DRUNTIME_API=0
641 )639 )
@@ -51,11 +51,13 @@ target_link_libraries(xpu_tprt PRIVATE
51 $<BUILD_INTERFACE:msprof_headers>51 $<BUILD_INTERFACE:msprof_headers>
52 -Wl,--no-as-needed52 -Wl,--no-as-needed
53 c_sec53 c_sec
54+ profapi_share
55+ mmpa
56+ unified_dlog
54 -Wl,--as-needed57 -Wl,--as-needed
55)58)
56 59
57target_compile_definitions(xpu_tprt PRIVATE60target_compile_definitions(xpu_tprt PRIVATE
58- LOG_CPP
59 google=ascend_private61 google=ascend_private
60 )62 )
61 63