Skip to content

Commit af2f9c5

Browse files
committed
fix err when arg to racks is relative path
1 parent bc2762a commit af2f9c5

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

  • racketscript-compiler/racketscript/compiler

racketscript-compiler/racketscript/compiler/util.rkt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,8 @@
235235
(path->complete-path output-path)]
236236
[(list 'general mod-path)
237237
(let* ([main (assert (main-source-file) path?)]
238-
[rel-path (find-relative-path (path-parent main) mod-path)])
238+
[rel-path (find-relative-path (simple-form-path (path-parent main))
239+
(simple-form-path mod-path))])
239240
(path->complete-path
240241
(build-path (output-directory) "modules" (~a rel-path ".js"))))])))
241242

0 commit comments

Comments
 (0)