提交 c10bc6d6 编写于 作者: H huzhiqiang 提交者: sangoly

fix compiling and fix code style (#2088)

* fix compiling and fix code style test=develop
上级 cef884e5
......@@ -303,8 +303,12 @@ function(cc_library TARGET_NAME)
if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${source}.h)
list(APPEND cc_library_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/${source}.h)
endif()
if(NOT ${source_file} MATCHES "framework.pb.cc")
list(APPEND full_path_src ${CMAKE_CURRENT_SOURCE_DIR}/${source_file})
if(${source_file} MATCHES "__generated_code__.cc")
list(APPEND full_path_src ${source_file})
else()
if(NOT ${source_file} MATCHES "framework.pb.cc")
list(APPEND full_path_src ${CMAKE_CURRENT_SOURCE_DIR}/${source_file})
endif()
endif()
endforeach()
set(__lite_cc_files ${__lite_cc_files} ${full_path_src} CACHE INTERNAL "")
......
......@@ -77,7 +77,6 @@ void MemoryOptimizePass::CollectLifeCycleByDevice(
auto outputs = op_node->outlinks;
std::vector<Node*> requires(inputs.begin(), inputs.end());
requires.insert(requires.end(), outputs.begin(), outputs.end());
auto& stmt = op_node->AsStmt();
for (Node* node : requires) {
CHECK(node->IsArg());
auto& arg = node->AsArg();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册