Skip to content

Commit

Permalink
Fixes #52
Browse files Browse the repository at this point in the history
  • Loading branch information
yglukhov committed Sep 23, 2019
1 parent b1e5c9a commit 68a9b21
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion jnim.nimble
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Package

version = "0.5.0"
version = "0.5.1"
author = "Anatoly Galiulin, Yuriy Glukhov"
description = "Java bridge for Nim"
license = "MIT"
Expand Down
2 changes: 1 addition & 1 deletion jnim/private/jvm_finder.nim
Original file line number Diff line number Diff line change
Expand Up @@ -100,4 +100,4 @@ proc findCtJVM: JVMPath {.compileTime.} =
assert jvmO.isSome, "JVM not found. Please set JAVA_HOME environment variable"
jvmO.get

const CT_JVM* = findCtJVM() ## Compile time JVM
template CT_JVM*: JVMPath {.deprecated.} = static(findCtJVM())
3 changes: 2 additions & 1 deletion tests/test_jvm_finder.nim
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import ../jnim, unittest, options

const CT_JVM = findJVM().get # findJVM should work in compile time

suite "jvm_finder":
test "jvm_finder - Find JVM":
echo findJVM()
echo CT_JVM

0 comments on commit 68a9b21

Please sign in to comment.