On Wed, Oct 26, 2016 at 2:30 PM, Matthew Flatt <mfl...@cs.utah.edu> wrote: > At Wed, 26 Oct 2016 14:01:15 -0400, David Storrs wrote: >> That document talks about running raco pkg, although I would have >> expected raco exe. I'm guessing, but it seems like the process for >> crosscompiling a racket file target.rkt would be: >> >> 1) Download a .tgz for Windows (making sure that you choose 32-bit or >> 64-bit as appropriate to the target machine) and unroll it into an >> arbitrary directory, call it /path/to/windows. >> >> 2) Run: raco racket -G /path/to/windows/etc -X >> /path/to/windows/collects -l- raco exe target.rkt > > That first "raco" is not intended, right?
Oops. Yes, not intended. >> What is "-l-" ? (That's an "ell", right? Not a 1 / pipe / >> etc.) I would have expected a space between the -l (--lib) and the >> "-". Is it a typo? > > Yes, it's an "ell", and not a typo. `-l- raco` is short for `-l raco > --`, where `--` causes any later argument that start with "-" to be > passed on to `raco` instead of treated as a flag to `racket`. Ah, good to know. Is that a Racket-specific thing or a bit of Unix-ish lore that I've not encountered? Google is not telling me. >> 3) Email someone the new "target" executable which they can run on >> their Windows machine. >> >> Is this right? > > Yes, although I bet you'll need > > racket -G /path/to/windows/etc -X /path/to/windows/collects \ > -l- raco pkg install -i <pkg> > > to install some packages that "target.rkt" uses, since the unpacked > ".tgz" will have only the "base" package. Probably this would happen first, right? Unroll the Windows tgz, then install the packages, then do the cross-compilation? On a separate but related note: I would like to be able to contribute to the docs, both of core Racket and of various packages. Is there a clear tutorial anywhere on that? If so I can take the above and add it to the docs for cross compilation. I know that in general this consists of sending a git pull request, but there are quite a few repositories (https://github.com/racket), and it's not obvious at all where the docs (Guide, Reference, etc) reside. I've done quite a bit of fruitless exploring and finally given up. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.