diff --git a/mx_driving/csrc/CMakeLists.txt b/mx_driving/csrc/CMakeLists.txt index 44c0bd5f472c587d01c057de691c72d5095e39fb..6fd10768c3c02fd925de1d4cd9674dec3cddb876 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