diff --git a/collects/compiler/embed.rkt b/collects/compiler/embed.rkt index 6dac6ae9f9..7db0b37248 100644 --- a/collects/compiler/embed.rkt +++ b/collects/compiler/embed.rkt @@ -38,6 +38,7 @@ #:collects-path (or/c #f path-string? (listof path-string?)) + #:collects-dest (or/c #f path-string?) #:launcher? any/c #:verbose? any/c #:compiler (-> any/c compiled-expression?) diff --git a/collects/scribblings/raco/exe-api.scrbl b/collects/scribblings/raco/exe-api.scrbl index c67214c3f1..8f45d7711f 100644 --- a/collects/scribblings/raco/exe-api.scrbl +++ b/collects/scribblings/raco/exe-api.scrbl @@ -72,6 +72,9 @@ parameter is true. path-string? (listof path-string?)) #f] + [#:collects-dest collects-dest + (or/c #f path-string?) + #f] [#:launcher? launcher? any/c #f] [#:verbose? verbose? any/c #f] [#:expand-namespace expand-namespace namespace? (current-namespace)] @@ -156,6 +159,11 @@ below. When a module declares run-time paths via path (for use both by immediate execution and for creating a distribution that contains the executable). +If @racket[collects-dest] is a path insteda of @racket[#f], then +instead of embedding collection-based modules into the executable, the +modules (in compiled form, only) are copied into collections in the +@racket[collects-dest] directory. + The optional @racket[#:aux] argument is an association list for platform-specific options (i.e., it is a list of pairs where the first element of the pair is a key symbol and the second element is the