mirror of
https://github.com/vulkano-rs/vulkano.git
synced 2024-11-22 06:45:23 +00:00
Fix permission setting for glslang validator
This commit is contained in:
parent
b6a3b3c598
commit
b67b96a49e
@ -26,11 +26,11 @@ fn main() {
|
||||
|
||||
// setting permissions of the executable
|
||||
{
|
||||
#[cfg(linux)] fn permissions() -> Option<Permissions> {
|
||||
#[cfg(unix)] fn permissions() -> Option<Permissions> {
|
||||
use std::os::unix::fs::PermissionsExt;
|
||||
Some(Permissions::from_mode(755))
|
||||
}
|
||||
#[cfg(not(linux))] fn permissions() -> Option<Permissions> { None }
|
||||
#[cfg(not(unix))] fn permissions() -> Option<Permissions> { None }
|
||||
if let Some(permissions) = permissions() {
|
||||
fs::set_permissions(&out_file, permissions).unwrap();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user