~subsetpark/bagatto

8a3d875c1d1e56154b7f3c80cd8c3bdc8e40c5aa — Zach Smith 2 years ago af168c8 15/static-builds
Use env var for static flag
1 files changed, 6 insertions(+), 4 deletions(-)

M project.janet
M project.janet => project.janet +6 -4
@@ 10,11 10,13 @@
                 "https://github.com/janet-lang/argparse.git"
                 "https://github.com/pyrmont/testament"])

(def *static-build* (= (or (os/getenv "BAG_STATIC_BUILD") "0") "1"))

(declare-executable
  :name "bag"
  :entry "main.janet"
  :lflags ["-static"]
  :install true)
 :name "bag"
 :entry "main.janet"
 :lflags (if *static-build* ["-static"] [])
 :install true)

(declare-source
  :source ["bagatto.janet" "repl.janet"])