You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2022/11/05 23:02:34 UTC

[GitHub] [tvm] lhez commented on pull request #13118: [Android] Fix cpp_rpc build for android with NDK>=23

lhez commented on PR #13118:
URL: https://github.com/apache/tvm/pull/13118#issuecomment-1304659114

   You can use the original only for NDK versions < 23. From NDK 23, gold is removed. This is what I have been using for over a year,
   
   ```
    if(USE_OPENCL)
      if (ANDROID_ABI)
   -    set_property(TARGET tvm_rpc PROPERTY LINK_FLAGS -fuse-ld=gold)
   +    if(${ANDROID_NDK_MAJOR} VERSION_LESS "23")
   +      set_property(TARGET tvm_rpc PROPERTY LINK_FLAGS -fuse-ld=gold)
   +    endif()
      endif()
    endif()
   ```
   
   I am also kind of surprised nobody noticed `cpp_rpc` would fail to build on NDK 23 and forward for over a year.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org