Marc Tiehuis 2e5115b068 Add run compiler command
'zig run file.zig' builds a file and stores the artifacts in the global
cache. On successful compilation the binary is executed.

'zig run file.zig -- a b c' does the same, but passes the arguments a,
b and c as runtime arguments to the program. Everything after an '--' are
treated as runtime arguments.

On a posix system, a shebang can be used to run a zig file directly. An
example shebang would be '#!/usr/bin/zig run'. You may not be able pass
extra compile arguments currently as part of the shebang. Linux for example
treats all arguments after the first as a single argument which will result
in an 'invalid command'.

Currently there is no customisability for the cache path as a compile
argument. For a posix system you can use `TMPDIR=. zig run file.zig` to
override, in this case using the current directory for the run cache.

The input file is always recompiled, even if it has changed. This is
intended to be cached but further discussion/thought needs to go into
this.

Closes #466.
2018-04-01 17:03:06 +12:00
..
2018-03-31 11:26:02 -04:00
2018-03-24 19:25:53 -04:00
2017-12-02 22:32:39 -05:00
2018-04-01 17:03:06 +12:00
2018-02-04 22:06:03 -05:00
2016-09-19 11:54:01 -04:00
2017-11-29 23:09:35 -05:00
2017-11-29 23:09:35 -05:00
2016-12-01 21:08:12 -05:00
2018-03-24 19:25:53 -04:00
2018-04-01 17:03:06 +12:00
2018-03-31 16:34:55 -04:00
2016-02-11 01:33:27 -07:00
2017-04-10 20:02:39 -04:00
2018-04-01 17:03:06 +12:00
2018-04-01 17:03:06 +12:00
2018-04-01 17:03:06 +12:00
2018-03-24 19:25:53 -04:00
2018-03-24 19:25:53 -04:00
2018-03-24 19:25:53 -04:00
2017-10-01 21:05:08 -04:00
2018-02-08 02:08:45 -05:00