Skip to content

Commit d55c25e

Browse files
Make setJVM a noop if not in android
1 parent 7c1bd0a commit d55c25e

File tree

1 file changed

+2
-2
lines changed
  • jni/src/common/Foreign/JNI/Unsafe/Internal

1 file changed

+2
-2
lines changed

jni/src/common/Foreign/JNI/Unsafe/Internal/JVM.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,9 +209,9 @@ jvmPtr = unsafePerformIO $ [CU.exp| JavaVM* { jniJVM } |] >>= \case
209209

210210
-- | Sets the current JVM
211211
--
212-
-- Only supported in ANDROID
212+
-- Does nothing if not in ANDROID
213213
setJVM :: JVM -> IO ()
214-
setJVM = error "setJVM: only supported in ANDROID"
214+
setJVM _ = return ()
215215

216216
-- | Create a new JVM, with the given arguments. /Can only be called once per
217217
-- process due to limitations of the JNI implementation/ (see documentation

0 commit comments

Comments
 (0)