IssueRaiser

Allow AOT executables to be cross-compiled

Currently application snapshots ([as described here](https://github.com/dart-lang/sdk/wiki/Snapshots)) can only be compiled for the architecture of the machine doing the compilation. This makes releasing cross-platform apps using these snapshots much more difficult, requiring multiple machines (including at least one physical machine, since OS X isn't virtualizable) to compile for all platforms. It seems that the compilation process could do the initial run on the current platform, but then preserve the profiling information and use it to cross-compile the result to other platforms. --- **Admin note**: This is being implemented gradually via new `--target-os` and `--target-arch` flags on `dart compile exe`. The current status is as follows: | **Developer OS**<br>(OS where the compiler is run) | **Target OS**<br>(OS where the exe is run) | **Status**<br><br> | | -------------------------------------------------- | ------------------------------------------ | --------------------------- | | macOS | macOS | Supported in 2.15 and later | | macOS | Windows | Not supported | | macOS | Linux | Supported in 3.8 and later | | Windows | macOS

Posted by nex3 on Feb 2, 2017, 11:14 PM

Tags

Related issues

Raise real-world problems, find people facing the same issue, and discuss solutions.4,500 issues0 comments

ux (Sysadmin)

Allow AOT executables to be cross-compiled

nex3Feb 2, 2017, 11:14 PM

Currently application snapshots ([as described here](https://github.com/dart-lang/sdk/wiki/Snapshots)) can only be compiled for the architecture of the machine doing the compilation. This makes releasing cross-platform apps using these snapshots much more difficult, requiring multiple machines (including at least one physical machine, since OS X isn't virtualizable) to compile for all platforms. It seems that the compilation process could do the initial run on the current platform, but then preserve the profiling information and use it to cross-compile the result to other platforms. --- **Admin note**: This is being implemented gradually via new `--target-os` and `--target-arch` flags on `dart compile exe`. The current status is as follows: | **Developer OS**<br>(OS where the compiler is run) | **Target OS**<br>(OS where the exe is run) | **Status**<br><br> | | -------------------------------------------------- | ------------------------------------------ | --------------------------- | | macOS | macOS | Supported in 2.15 and later | | macOS | Windows | Not supported | | macOS | Linux | Supported in 3.8 and later | | Windows | macOS

Comments (0)

No comments yet. Start the discussion.

Comment on this issue