Skip to content

Commit

Permalink
gxc: create output directory for binary executables (#794)
Browse files Browse the repository at this point in the history
  • Loading branch information
vyzo authored Sep 5, 2023
1 parent d70df51 commit 856d6c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/gerbil/compiler/driver.ss
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ namespace: gxc
(builtin-modules
(map (lambda (mod) (symbol->string (expander-context-id mod)))
(cons ctx deps))))
(create-directory* (path-directory output-bin))
(with-output-to-scheme-file output-scm
(cut generate-stub builtin-modules))
(when (current-compile-invoke-gsc)
Expand Down Expand Up @@ -405,6 +406,7 @@ namespace: gxc
... "-exe" "-o" output-bin
(gsc-debug-options) ... gsc-opts ... gsc-gx-macros ...
output-scm]))
(create-directory* (path-directory output-bin))
(with-output-to-scheme-file output-scm
(cut generate-stub [gx-gambc ... deps ... bin-scm]))
(when (current-compile-invoke-gsc)
Expand Down

0 comments on commit 856d6c6

Please sign in to comment.