From f95e33aa823c2d95914a34769961981c46c46d4b Mon Sep 17 00:00:00 2001 From: Toshiki Takeuchi Date: Sat, 27 Apr 2024 13:51:00 +0900 Subject: [PATCH 1/3] Set compile options --- build.clj | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/build.clj b/build.clj index 6c84baf..55ad9e6 100644 --- a/build.clj +++ b/build.clj @@ -6,10 +6,12 @@ (def version (format "0.1.%s" (b/git-count-revs nil))) (def class-dir "target/classes") -(def basis (b/create-basis {:project "deps.edn"})) (def uber-file "target/gnife.jar") (def bin-file "target/gnife") +;; delay to defer side effects (artifact downloads) +(def basis (delay (b/create-basis {:project "deps.edn"}))) + (defn clean [_] (b/delete {:path "target"})) @@ -19,12 +21,14 @@ :target-dir class-dir}) (b/write-file {:path (str class-dir "/VERSION") :string version}) - (b/compile-clj {:basis basis + (b/compile-clj {:basis @basis :src-dirs ["src"] - :class-dir class-dir}) + :class-dir class-dir + :compile-opts {:elide-meta [:doc :file :line :added] + :direct-linking true}}) (b/uber {:class-dir class-dir :uber-file uber-file - :basis basis + :basis @basis :main 'gnife.main})) (def ^String preamble From a412431fff3db5bdff3b176b7bbf80107baa502e Mon Sep 17 00:00:00 2001 From: Toshiki Takeuchi Date: Sat, 27 Apr 2024 13:53:12 +0900 Subject: [PATCH 2/3] Update dependencies --- deps.edn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/deps.edn b/deps.edn index faf8f3f..fe995b1 100644 --- a/deps.edn +++ b/deps.edn @@ -1,7 +1,7 @@ {:deps {clj-hgvs/clj-hgvs {:mvn/version "0.4.7"} clj-sub-command/clj-sub-command {:mvn/version "0.6.0"} cljam/cljam {:mvn/version "0.8.4"} - org.clojure/clojure {:mvn/version "1.11.1"} + org.clojure/clojure {:mvn/version "1.11.3"} org.clojure/tools.cli {:mvn/version "1.1.230"} varity/varity {:mvn/version "0.11.0"}} @@ -22,5 +22,5 @@ :build {:extra-deps {io.github.clojure/tools.build - {:git/tag "v0.9.6" :git/sha "8e78bcc"}} + {:git/tag "v0.10.0" :git/sha "3a2c484"}} :ns-default build}}} From 83a9b3fc0b027490812fb599c483288065d3f99f Mon Sep 17 00:00:00 2001 From: Toshiki Takeuchi Date: Sat, 27 Apr 2024 14:08:20 +0900 Subject: [PATCH 3/3] Add description of GNIFE_JVM_OPTS to readme --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 9f81017..f202e68 100644 --- a/README.md +++ b/README.md @@ -77,6 +77,15 @@ hgvs `gnife [type] [command] --help` to display detailed usage of each command. +## JVM Options + +To pass extra arguments to the JVM, set the `GNIFE_JVM_OPTS` environment +variable. + +```sh +export GNIFE_JVM_OPTS="-XX:TieredStopAtLevel=1 -Xmx4g" +``` + ## Test To run tests,