已合并
fix runtime log symbol bug #1686
dongjiangtao创建于 4月21日
fix runtime log symbol bug #1686
已合并
共 3 个文件变更+3-6
| @@ -416,7 +416,6 @@ macro(add_runtime_common_library target_name) | |||
| 416 | ) | 416 | ) |
| 417 | 417 | ||
| 418 | target_compile_definitions(${target_name} PRIVATE | 418 | target_compile_definitions(${target_name} PRIVATE |
| 419 | - LOG_CPP | ||
| 420 | -DSTATIC_RT_LIB=0 | 419 | -DSTATIC_RT_LIB=0 |
| 421 | -DRUNTIME_API=0 | 420 | -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} PRIVATE | 501 | target_compile_definitions(${target_name} PRIVATE |
| 503 | - LOG_CPP | ||
| 504 | -DSTATIC_RT_LIB=0 # set 1 when not split so | 502 | -DSTATIC_RT_LIB=0 # set 1 when not split so |
| 505 | -DRUNTIME_API=1 # set 1 when split so and in libruntime.so | 503 | -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} PRIVATE | 600 | target_compile_definitions(${target_name} PRIVATE |
| 603 | - LOG_CPP | ||
| 604 | -DSTATIC_RT_LIB=0 | 601 | -DSTATIC_RT_LIB=0 |
| 605 | -DRUNTIME_API=0 | 602 | -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} PRIVATE | 529 | target_compile_definitions(${target_name} PRIVATE |
| 530 | - LOG_CPP | ||
| 531 | -DSTATIC_RT_LIB=0 | 530 | -DSTATIC_RT_LIB=0 |
| 532 | -DRUNTIME_API=0 | 531 | -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} PRIVATE | 636 | target_compile_definitions(${target_name} PRIVATE |
| 638 | - LOG_CPP | ||
| 639 | -DSTATIC_RT_LIB=0 | 637 | -DSTATIC_RT_LIB=0 |
| 640 | -DRUNTIME_API=0 | 638 | -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-needed | 52 | -Wl,--no-as-needed |
| 53 | c_sec | 53 | c_sec |
| 54 | + profapi_share | ||
| 55 | + mmpa | ||
| 56 | + unified_dlog | ||
| 54 | -Wl,--as-needed | 57 | -Wl,--as-needed |
| 55 | ) | 58 | ) |
| 56 | 59 | ||
| 57 | target_compile_definitions(xpu_tprt PRIVATE | 60 | target_compile_definitions(xpu_tprt PRIVATE |
| 58 | - LOG_CPP | ||
| 59 | google=ascend_private | 61 | google=ascend_private |
| 60 | ) | 62 | ) |
| 61 | 63 | ||