Skip to content

Commit

Permalink
[Fix](bangc-ops): update clang version for coverage test. (Cambricon#692
Browse files Browse the repository at this point in the history
)
  • Loading branch information
DanieeelLiu authored May 31, 2023
1 parent 4de5300 commit 95572a8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
bangc-ops/test/mlu_op_gtest/pb_gtest/src/gtest/case_list.cpp
bangc-ops/test/mlu_op_gtest/pb_gtest/src/gtest/op_register.h
bangc-ops/daily.software.cambricon.com/
bangc-ops/dep_libs_extract
dependency.txt

# Swap
[._]*.s[a-v][a-z]
Expand Down
2 changes: 1 addition & 1 deletion bangc-ops/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ endif()

if(${MLUOP_BUILD_COVERAGE_TEST} MATCHES "ON")
message("-- MLU_OP_COVERAGE_TEST=${MLUOP_BUILD_COVERAGE_TEST}")
set(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-u__llvm_profile_runtime ${NEUWARE_HOME}/lib/clang/11.0.0/lib/linux/libclang_rt.profile-x86_64.a")
set(CMAKE_SHARED_LIBRARY_CXX_FLAGS "-u__llvm_profile_runtime ${NEUWARE_HOME}/lib/clang/11.1.0/lib/linux/libclang_rt.profile-x86_64.a")
set(CNRT_DUMP_PGO 1)
set(CNRT_PGO_OUTPUT_DIR=output)
set(BANG_CNCC_FLAGS "${BANG_CNCC_FLAGS} -fprofile-instr-generate -fcoverage-mapping -D COVERAGE")
Expand Down

0 comments on commit 95572a8

Please sign in to comment.