You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by ju...@apache.org on 2022/11/15 20:35:30 UTC

[tvm] branch main updated: [tvm4j] Fix tvm4j build on MacOS (#13370)

This is an automated email from the ASF dual-hosted git repository.

junrushao pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tvm.git


The following commit(s) were added to refs/heads/main by this push:
     new aa0c0db71b [tvm4j] Fix tvm4j build on MacOS (#13370)
aa0c0db71b is described below

commit aa0c0db71b196826d7474be036d619c04b77008a
Author: Egor Churaev <eg...@gmail.com>
AuthorDate: Tue Nov 15 23:35:24 2022 +0300

    [tvm4j] Fix tvm4j build on MacOS (#13370)
    
    - Add missing bracket in pom file
    - Replaced JavaVM on JavaNativeFoundation. From Xcode 12.1 (macOS 11
      (Big Sur)) JavaVM framework is no longer includes to the frameworks
      list. Necessary to use JavaNativeFoundation instead.
---
 jvm/native/osx-x86_64/pom.xml | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/jvm/native/osx-x86_64/pom.xml b/jvm/native/osx-x86_64/pom.xml
index c08667401b..3f76bb877d 100644
--- a/jvm/native/osx-x86_64/pom.xml
+++ b/jvm/native/osx-x86_64/pom.xml
@@ -120,14 +120,14 @@ under the License.
           <compilerEndOptions>
             <compilerEndOption>-I../../../include</compilerEndOption>
             <compilerEndOption>-I${JAVA_HOME}/include</compilerEndOption>
-            <compilerEndOption>-I${JAVA_HOME}/include/linux</compilerEndOption
+            <compilerEndOption>-I${JAVA_HOME}/include/linux</compilerEndOption>
             <compilerEndOption>${cflags}</compilerEndOption>
           </compilerEndOptions>
           <linkerStartOptions>
             <linkerStartOption>-shared</linkerStartOption>
           </linkerStartOptions>
           <linkerMiddleOptions>
-            <linkerMiddleOption>-framework JavaVM</linkerMiddleOption>
+            <linkerMiddleOption>-framework JavaNativeFoundation</linkerMiddleOption>
             <linkerMiddleOption>-Wl,-exported_symbol,_Java_*</linkerMiddleOption>
             <linkerMiddleOption>-undefined dynamic_lookup</linkerMiddleOption>
             <linkerMiddleOption>-Wl,-x</linkerMiddleOption>