# Build: fix producesPdbFile logic \(\#15756\) · gitcafe/zig

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

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

Visibility: public

Requested revision: ff57a264ad99562de16d9565d5bd4ac9cd964e5d

Requested commit: ff57a264ad99562de16d9565d5bd4ac9cd964e5d

Commit: ff57a264ad99562de16d9565d5bd4ac9cd964e5d

Tree: f22cc6becf32e5282d2d391b953e77674cfab747

Author: xEgoist

Committer: GitHub

## Message

```
Build: fix producesPdbFile logic (#15756)

Fixes bug causing ReleaseSmall to fail on Windows.

Due to the change in default behavior of ReleaseSmall, debug info are
stripped by default. However because `Compile.create` still defaults to
null, `producesPdbFile` will report true for
`lib/std/Build/Step/InstallArtifact.zig` causing it to fail on copying a
file that does not exist. This commit change the default of strip
depending on `optimize`.
```

## Parents

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

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