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?

>       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`.

> 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.


-- 
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.

Reply via email to