From a6b391651a33e19ef9942305891b9579c24332b2 Mon Sep 17 00:00:00 2001 From: yuansunshun <17301703748@163.com> Date: Sat, 30 Aug 2025 15:26:25 +0800 Subject: [PATCH] remove gcov in csrc cmake file --- mx_driving/csrc/CMakeLists.txt | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/mx_driving/csrc/CMakeLists.txt b/mx_driving/csrc/CMakeLists.txt index 44c0bd5f..6fd10768 100644 --- a/mx_driving/csrc/CMakeLists.txt +++ b/mx_driving/csrc/CMakeLists.txt @@ -40,9 +40,7 @@ if(BUILD_STAGE EQUAL 2) ${TORCH_PATH}/include/torch/csrc/api/include) target_compile_options( _C - PRIVATE -fprofile-arcs - -ftest-coverage - -fPIC + PRIVATE -fPIC $<$:-O3> $<$:-O0 -g> @@ -50,11 +48,10 @@ if(BUILD_STAGE EQUAL 2) -DTORCH_API_INCLUDE_EXTENSION_H -DTORCH_EXTENSION_NAME=_C -D_GLIBCXX_USE_CXX11_ABI=${ABI} - -D__FILENAME__=__FILE__ ${EXT_CXX_FLAGS}) target_link_directories(_C PRIVATE ${TORCH_PATH}/lib ${TORCH_NPU_PATH}/lib) - target_link_libraries(_C PRIVATE gcov c10 torch torch_python torch_npu) + target_link_libraries(_C PRIVATE c10 torch torch_python torch_npu) target_link_options( _C PRIVATE -- Gitee