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"])