已合并
[Profiling]恢复avp模块编译打包,修复gcc10版本ut用例编译失败问题 #753
[Profiling]恢复avp模块编译打包,修复gcc10版本ut用例编译失败问题 #753
已合并
zhengkai创建于 3月10日
共 3 个文件变更+7-5
@@ -8,4 +8,7 @@
8# See LICENSE in the root of the software repository for the full text of the License.8# See LICENSE in the root of the software repository for the full text of the License.
9# -----------------------------------------------------------------------------------------------------------9# -----------------------------------------------------------------------------------------------------------
10add_subdirectory(basic)10add_subdirectory(basic)
11-add_subdirectory(dvvp)11+add_subdirectory(dvvp)
12+if ("${PRODUCT}" STREQUAL "ascend035")
13+ add_subdirectory(avp)
14+endif()
@@ -42,8 +42,8 @@ set(basicInc
42)42)
43 43 
44set(libcSecSrc44set(libcSecSrc
45- ${RUNTIME_DIR}/third_party/libc_sec/src/memset_s.c45+ ${RUNTIME_DIR}/../abl/libc_sec/src/memset_s.c
46- ${RUNTIME_DIR}/third_party/libc_sec/src/strcat_s.c46+ ${RUNTIME_DIR}/../abl/libc_sec/src/strcat_s.c
47)47)
48 48 
49set(domainSrc49set(domainSrc
@@ -106,8 +106,6 @@ add_library(profcore_static STATIC
106target_include_directories(profcore_static PRIVATE106target_include_directories(profcore_static PRIVATE
107 ${LIBC_SEC_HEADER}107 ${LIBC_SEC_HEADER}
108 ${RUNTIME_DIR}/include/driver108 ${RUNTIME_DIR}/include/driver
109- ${RUNTIME_DIR}/tests/ut/msprof/ut/common/stub
110- ${RUNTIME_DIR}/tests/ut/msprof/ut/avp/stub
111 ${basicInc}109 ${basicInc}
112 ${domainInc}110 ${domainInc}
113 ${serviceInc}111 ${serviceInc}
@@ -8,6 +8,7 @@
8 * See LICENSE in the root of the software repository for the full text of the License.8 * See LICENSE in the root of the software repository for the full text of the License.
9 */9 */
10#include <map>10#include <map>
11+#include <string>
11#include <cstring>12#include <cstring>
12#include "ascend_hal.h"13#include "ascend_hal.h"
13#include "mmpa_api.h"14#include "mmpa_api.h"