# std.Build.RunStep: introduce addOutputFileArg API · gitcafe/zig

[View on GitCafe](https://git.cafe/gitcafe/zig/commit/2654d0c66860d32714e33404554482cbc0cbabf5)

Repository: [gitcafe/zig](https://git.cafe/gitcafe/zig)

Visibility: public

Requested revision: 2654d0c66860d32714e33404554482cbc0cbabf5

Requested commit: 2654d0c66860d32714e33404554482cbc0cbabf5

Commit: 2654d0c66860d32714e33404554482cbc0cbabf5

Tree: 2ad10365938888bc04741c925e4a80350e99b85c

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
std.Build.RunStep: introduce addOutputFileArg API

This provides file path as a command line argument to the command being
run, and returns a FileSource which can be used as inputs to other APIs
throughout the build system.

Unfortunately, it is implemented by pooping a ton of temporary files
into zig-cache/tmp for the time being. I think one of the very next
improvements to the build system should be moving the compiler's cache
system to the standard library and using it in the build system. I had a
look at the dependencies and it is already pretty untangled.

```

## Parents

- [b061cc9e3ff197d4af1408c8e3a8504dda208e10](https://git.cafe/gitcafe/zig/commit/b061cc9e3ff197d4af1408c8e3a8504dda208e10?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zig/tree/2654d0c66860d32714e33404554482cbc0cbabf5?format=markdown)
