▾ modified README.md +3 -2 Viewed
@@ -25,8 +25,9 @@ nimble test 25 25 nimble demo 26 26 ``` 27 27 28 - There is also a ` justfile` wrapping these, plus ` just check`, ` just docs`, 29 - ` just clean` and ` just jdk` (prints the JDK that will be linked). ` just -l` 28 + There is also a ` justfile` wrapping these. ` just build` produces a release 29 + binary of the example at ` out/demo`; ` just check`, ` just docs`, ` just clean` 30 + and ` just jdk` (prints the JDK that will be linked) round it out. ` just -l` 30 31 lists them; the nimble tasks stay the source of truth. 31 32 32 33 Pass ` -d:libjavaNoLink` if your process already has the JVM symbols — when
@@ -25,8 +25,9 @@ nimble test 25 nimble demo 25 nimble demo 26 ``` 26 ``` 27 27 28 - There is also a ` justfile` wrapping these, plus ` just check`, ` just docs`, 28 + There is also a ` justfile` wrapping these. ` just build` produces a release 29 - ` just clean` and ` just jdk` (prints the JDK that will be linked). ` just -l` 29 + binary of the example at ` out/demo`; ` just check`, ` just docs`, ` just clean` 30 + and ` just jdk` (prints the JDK that will be linked) round it out. ` just -l` 30 lists them; the nimble tasks stay the source of truth. 31 lists them; the nimble tasks stay the source of truth. 31 32 32 Pass ` -d:libjavaNoLink` if your process already has the JVM symbols — when33 Pass ` -d:libjavaNoLink` if your process already has the JVM symbols — when
▾ modified justfile +5 -1 Viewed
@@ -17,6 +17,10 @@ test: 17 17 demo : 18 18 nimble demo 19 19 20 + # Compile the example binary into out/ (release build, nothing left in-tree) 21 + build : java 22 + nim c -d:release --path:src --nimcache:build/nimcache -o:out/demo examples/demo.nim 23 + 20 24 # Type-check the library without producing a binary. 21 25 # `nim check` does not run `staticExec`, so config.nim's PATH-based JDK 22 26 # fallback is unavailable there — resolve the home here and pass it in. @@ -32,7 +36,7 @@ docs: 32 36 33 37 # Remove build outputs and compiled test/example binaries 34 38 clean : 35 - rm -rf build nimcache 39 + rm -rf build nimcache out 36 40 rm -f tests/tlibjava examples/demo 37 41 38 42 # Print the JDK this build will link against
@@ -17,6 +17,10 @@ test: 17 demo : 17 demo : 18 nimble demo 18 nimble demo 19 19 20 + # Compile the example binary into out/ (release build, nothing left in-tree) 21 + build : java 22 + nim c -d:release --path:src --nimcache:build/nimcache -o:out/demo examples/demo.nim 23 + 20 # Type-check the library without producing a binary. 24 # Type-check the library without producing a binary. 21 # `nim check` does not run `staticExec`, so config.nim's PATH-based JDK 25 # `nim check` does not run `staticExec`, so config.nim's PATH-based JDK 22 # fallback is unavailable there — resolve the home here and pass it in. 26 # fallback is unavailable there — resolve the home here and pass it in. @@ -32,7 +36,7 @@ docs: 32 36 33 # Remove build outputs and compiled test/example binaries 37 # Remove build outputs and compiled test/example binaries 34 clean : 38 clean : 35 - rm -rf build nimcache 39 + rm -rf build nimcache out 36 rm -f tests/tlibjava examples/demo 40 rm -f tests/tlibjava examples/demo 37 41 38 # Print the JDK this build will link against 42 # Print the JDK this build will link against