[IE][VPU]: WA for Segmentation fault on dlclose() issue (#4707)
* Prevent myriadPlugin to be unloaded at runtime.
This commit is contained in:
parent
3330ef3da3
commit
5df30a6d27
@ -41,6 +41,11 @@ target_link_libraries(${TARGET_NAME}
|
||||
PRIVATE
|
||||
mvnc inference_engine inference_engine_legacy vpu_graph_transformer)
|
||||
|
||||
# MyriadPlugin is not safe to unload it at runtime
|
||||
if(CMAKE_CXX_COMPILER_ID STREQUAL "GNU")
|
||||
set_target_properties(${TARGET_NAME} PROPERTIES LINK_OPTIONS "-Wl,-z,nodelete")
|
||||
endif()
|
||||
|
||||
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
|
||||
|
||||
# LTO
|
||||
|
Loading…
Reference in New Issue
Block a user