Skip to content

Commit 6a55413

Browse files
authored
Update to use on M1!
1 parent fd5f6cd commit 6a55413

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,12 @@ separately to build on Linux or macOS using the following commands:
1111
export JVM_LIBRARY_PATH=$JAVA_HOME/jre/lib/server # macOS
1212
export JVM_LIBRARY_PATH=$JAVA_HOME/jre/lib/amd64/server # Linux
1313

14-
ulimit -n 10000 # increase file descriptors for link
14+
ulimit -n 10000 # increase file descriptors for link on Linux
15+
16+
# or, to use the JVM that comes with Xcode
17+
18+
export JAVA_HOME=/Applications/Xcode.app/Contents/SharedFrameworks/ContentDeliveryServices.framework/Versions/A/itms/java
19+
export JVM_LIBRARY_PATH=$JAVA_HOME/lib/server # even works on an M1
1520

1621
swift build -Xlinker -L$JVM_LIBRARY_PATH -Xlinker -rpath -Xlinker $JVM_LIBRARY_PATH -Xlinker -ljvm
1722
```

0 commit comments

Comments
 (0)