diff options
author | Eduardo Julian | 2016-10-30 01:19:49 -0400 |
---|---|---|
committer | Eduardo Julian | 2016-10-30 01:19:49 -0400 |
commit | 969cfa5f52085de2b92fc47387a9550a07a34452 (patch) | |
tree | e60b2b0cab478026c27374625dbfe537c37ef628 /src/lux.clj | |
parent | 8d7472544db3e0b1cccb0660fa5715cec7e559b0 (diff) |
- Fixed a bug in how the output-dir and output-package are handled.
- Now taking output-dir from command-line arguments.
Diffstat (limited to 'src/lux.clj')
-rw-r--r-- | src/lux.clj | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lux.clj b/src/lux.clj index a8efa19f7..e6fc3f4cc 100644 --- a/src/lux.clj +++ b/src/lux.clj @@ -25,11 +25,11 @@ (defn -main [& args] (|case (&/->list args) - (&/$Cons "release" (&/$Cons program-module (&/$Cons resources-dirs (&/$Cons source-dirs (&/$Nil))))) - (time (&compiler/compile-program &/$Release program-module (process-dirs resources-dirs) (process-dirs source-dirs))) + (&/$Cons "release" (&/$Cons program-module (&/$Cons resources-dirs (&/$Cons source-dirs (&/$Cons target-dir (&/$Nil)))))) + (time (&compiler/compile-program &/$Release program-module (process-dirs resources-dirs) (process-dirs source-dirs) target-dir)) - (&/$Cons "debug" (&/$Cons program-module (&/$Cons resources-dirs (&/$Cons source-dirs (&/$Nil))))) - (time (&compiler/compile-program &/$Debug program-module (process-dirs resources-dirs) (process-dirs source-dirs))) + (&/$Cons "debug" (&/$Cons program-module (&/$Cons resources-dirs (&/$Cons source-dirs (&/$Cons target-dir (&/$Nil)))))) + (time (&compiler/compile-program &/$Debug program-module (process-dirs resources-dirs) (process-dirs source-dirs) target-dir)) (&/$Cons "repl" (&/$Cons source-dirs (&/$Nil))) (&repl/repl (process-dirs source-dirs)) |