mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-26 00:34:19 +00:00
a3a4e89778
Previously, it was possible for the hardlinked glslangValidator to become truncated when the glsl-to-spirv crate was rebuilt. The file would be successfully hardlinked the first time, but on subsequent builds the hardlink attempt would fail becasue the target already exists. This would cause the build script to fall back to a copy, which truncates when source and dest are the same file. This removes the hardlinking entirely, meaning that we always just copy our built glslangValidator to where we want it. While it would be possible to try to make the hardlinking/copying logic idempotent, the complexity (and potential fragility to similar bugs in the future) doesn't seem worth it to avoid one copy. This fixes #95 |
||
---|---|---|
.. | ||
build.rs | ||
glslangValidator.exe |