# fix std.Build.OptionsStep · gitcafe/zig

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

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

Visibility: public

Requested revision: 8f481dfc3c4f12327499485e3bf10fbbb1023186

Requested commit: 8f481dfc3c4f12327499485e3bf10fbbb1023186

Commit: 8f481dfc3c4f12327499485e3bf10fbbb1023186

Tree: 1b197c065a39b459ddb9b7d2cfae10dd8023cc28

Author: Andrew Kelley

Committer: Andrew Kelley

## Message

```
fix std.Build.OptionsStep

 * use the same hash function as the rest of the steps
 * fix race condition due to a macOS oddity.
 * fix race condition due to file truncation (rename into place instead)
 * integrate with marking Step.result_cached. check if the file already
   exists with fs.access before doing anything else.
 * use a directory so that the file basename can be "options.zig"
   instead of a hash digest.
 * better error reporting in case of file system failures.

```

## Parents

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

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