Browse Source

update ge_runner cmakelist

tags/v1.1.0
taoxiangdong 4 years ago
parent
commit
384a7549a5
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      ge/CMakeLists.txt

+ 6
- 6
ge/CMakeLists.txt View File

@@ -707,7 +707,11 @@ target_link_libraries(ge_compiler
)

############ libascendcl.so ############
add_library(opensrc_ascendc SHARED ${DUMMY_OBJ})
file(GENERATE OUTPUT ${CMAKE_BINARY_DIR}/dummy.c CONTENT "")
add_library(dummy_obj OBJECT ${CMAKE_BINARY_DIR}/dummy.c)
set(DUMMY_OBJ $<TARGET_OBJECTS:dummy_obj>)

add_library(opensrc_ascendcl SHARED ${DUMMY_OBJ})

target_link_libraries(opensrc_ascendcl PRIVATE
-Wl, --whole-archive
@@ -735,14 +739,10 @@ target_link_libraries(opensrc_ascendcl PRIVATE
json
)

set_target_properties(opensrc_ascendc PROPERTIES
set_target_properties(opensrc_ascendcl PROPERTIES
OUTPUT_NAME ascendcl
)

file(GENERATE OUTPUT ${CMAKE_BINARY_DIR}/dummy.c CONTENT "")
add_library(dummy_obj OBJECT ${CMAKE_BINARY_DIR}/dummy.c)
set(DUMMY_OBJ $<TARGET_OBJECTS:dummy_obj>)

##################################################################
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/stub_ge_ir_build.cc


Loading…
Cancel
Save