Cross compilation in Racket / Scheme

Can I compile for Windows or Mac OSX when running on Linux for the Racket programming language ( cross-compilation )? There is no such menu item in the DrRacket IDE. The Raco help command also did not show this option:

$ raco help make
raco make [ <option> ... ] <file> [<another-file>] ...
 where <option> is one of
  -j <n> : Compile with up to <n> tasks in parallel
  --disable-inline : Disable procedure inlining during compilation
  --disable-constant : Disable enforcement of module constants
  --no-deps : Compile immediate files without updating dependencies
  -p <file>, --prefix <file> : Add elaboration-time prefix file for --no-deps
  --no-prim : Do not assume `scheme' bindings at top level for --no-deps
  -v : Verbose mode
  --vv : Very verbose mode
  --help, -h : Show this help
  -- : Do not treat any remaining argument as a switch (at this level)
 Multiple single-letter switches can be combined after one `-'; for
  example: `-h-' is the same as `-h --'

I suspect this is not possible in Racket. Is this possible for any other Scheme or Lisp language? Thanks for your comments.

+4
source share
3 answers

, raco DrRacket , , racket, -. , , .

+1

, , . Matthew Flatt 2016-01-07:

, , .

http://docs.racket-lang.org/raco/cross-system.html

, X. ​​ Racket X, Racket Y, X raco exe raco dist Y. .

:

  • Y.

    Y - Windows, , racket-lang.org ".exe" Windows. - Windows-, .

    , , ".tgz" ".zip", .

  • , .

    - Windows Racket , , Y - Windows. Y - OS X Linux.

+1

impossible. I want to ask this question earlier. Now that I need to compile something in another OS, I use VirtualBox to start the vm system to compile it.

0
source

Source: https://habr.com/ru/post/1685813/


All Articles