tint/win: fix TmpFilePath asserting in some msvc crts
We were using the "x" flag for exclusive mode in the call to fopen_s,
but this seems not to be supported in all c runtimes. For instance, we
get this error when using the debug crt on the LUCI windows bots:
```
minkernel\crts\ucrt\inc\corecrt_internal_stdio.h(656) : Assertion failed: ("Invalid file open mode", 0)
```
Replaced this with MS-specific _sopen_s that accepts flags
`_O_CREAT | _O_EXCL` to create a file in exclusive mode, failing if it
already exists.
Bug: dawn:2435
Change-Id: I1ef997846c6d034dea4cae619cd85c6b6e9d9295
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/179140
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Dawn is an open-source and cross-platform implementation of the WebGPU standard. More precisely it implements webgpu.h that is a one-to-one mapping with the WebGPU IDL. Dawn is meant to be integrated as part of a larger system and is the underlying implementation of WebGPU in Chromium.
Dawn provides several WebGPU building blocks:
webgpu.h version that Dawn implements.webgpu.h.Helpful links:
Developer documentation:
User documentation: (TODO, figure out what overlaps with the webgpu.h docs)
BSD 3-Clause License, please see LICENSE.
This is not an officially supported Google product.