fix docs on `raco make --no-deps'
Closes PR 11018
This commit is contained in:
parent
070a39d902
commit
a8062dc37d
|
@ -19,7 +19,7 @@
|
||||||
#:once-each
|
#:once-each
|
||||||
[("--disable-inline") "Disable procedure inlining during compilation"
|
[("--disable-inline") "Disable procedure inlining during compilation"
|
||||||
(disable-inlining #t)]
|
(disable-inlining #t)]
|
||||||
[("--no-deps") "Compile immediate files without updating depdencies"
|
[("--no-deps") "Compile immediate files without updating dependencies"
|
||||||
(disable-deps #t)]
|
(disable-deps #t)]
|
||||||
[("-p" "--prefix") file "Add elaboration-time prefix file for --no-deps"
|
[("-p" "--prefix") file "Add elaboration-time prefix file for --no-deps"
|
||||||
(prefixes (append (prefixes) (list file)))]
|
(prefixes (append (prefixes) (list file)))]
|
||||||
|
|
|
@ -320,24 +320,17 @@ path of an included file as it expands an @racket[include] form.}
|
||||||
|
|
||||||
@section[#:tag "zo"]{Compiling to Raw Bytecode}
|
@section[#:tag "zo"]{Compiling to Raw Bytecode}
|
||||||
|
|
||||||
The @DFlag{zo}/@Flag{z} mode for @exec{raco make} is an improverished
|
The @DFlag{no-deps} mode for @exec{raco make} is an improverished
|
||||||
form of the compilation, because it does not track import
|
form of the compilation, because it does not track import
|
||||||
dependencies. It does, however, support compilation of non-module
|
dependencies. It does, however, support compilation of non-module
|
||||||
source.
|
source in an namespace that iniitially imports @racketmodname[scheme].
|
||||||
|
|
||||||
By default, the generated bytecode is placed in the same directory as
|
|
||||||
the source file---which is not where it will be found automatically
|
|
||||||
when loading the source. Use the @as-index{@DFlag{auto-dir}} flag to
|
|
||||||
redirect the output to a @filepath{compiled} subdirectory, where it
|
|
||||||
will be found automatically when loading the source file.
|
|
||||||
|
|
||||||
Outside of a module, top-level @racket[define-syntaxes],
|
Outside of a module, top-level @racket[define-syntaxes],
|
||||||
@racket[module], @racket[#%require],
|
@racket[module], @racket[#%require],
|
||||||
@racket[define-values-for-syntax], and and @racket[begin] expressions
|
@racket[define-values-for-syntax], and and @racket[begin] expressions
|
||||||
are handled specially by @exec{raco make --zo}: the compile-time
|
are handled specially by @exec{raco make --no-deps}: the compile-time
|
||||||
portion of the expression is evaluated, because it might affect later
|
portion of the expression is evaluated, because it might affect later
|
||||||
expressions. (The @Flag{m} or @DFlag{module} flag turns off this
|
expressions.
|
||||||
special handling.)
|
|
||||||
|
|
||||||
For example, when compiling the file containing
|
For example, when compiling the file containing
|
||||||
|
|
||||||
|
@ -353,7 +346,7 @@ code) and evaluated (for further computation).
|
||||||
|
|
||||||
Many definition forms expand to @racket[define-syntaxes]. For example,
|
Many definition forms expand to @racket[define-syntaxes]. For example,
|
||||||
@racket[define-signature] expands to @racket[define-syntaxes]. In
|
@racket[define-signature] expands to @racket[define-syntaxes]. In
|
||||||
@racket[--zo] mode, @exec{raco make --zo} detects
|
@DFlag{no-deps} mode, @exec{raco make --no-deps} detects
|
||||||
@racket[define-syntaxes] and other expressions after expansion, so
|
@racket[define-syntaxes] and other expressions after expansion, so
|
||||||
top-level @racket[define-signature] expressions affect the compilation
|
top-level @racket[define-signature] expressions affect the compilation
|
||||||
of later expressions, as a programmer would expect.
|
of later expressions, as a programmer would expect.
|
||||||
|
|
Loading…
Reference in New Issue
Block a user