Read-Platform-Stub

(read-platform-stub string) -> string

Reads out the contents of the given executable stub, found in the "stubs" directory by default.

Example arguments would be: "darwin-ppc", "linux-x86", "openbsd-x86", "winnt-x86".

Warning:

This function will read out between 1 and 6 megabytes of binary text (note: this amount has decreased in later implementations, but it is still a large and "unsafe" string to handle from the repl). If run from the repl, this function should be wrapped in another function that will write it to a file. This is used by build-exe to create new binaries.