This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
433da1fc04
rust
/
tests
/
run-make
/
lto-readonly-lib
/
lib.rs
2 lines
24 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Fix permission denied error in 'ar' when lto is enabled The reason that 'ar' can fail with permission denied is that when link-time optimizations are enabled, rustc copies libraries into a temporary directory, preserving file permissions, and subsequently modifies them using 'ar'. The modification can fail because some package managers may install libraries in system directories as read-only files, which means the temporary file also becomes read-only when it is copied. I have fixed this by giving the temporary file's owner read+write permissions after the copy. I have also added a regression test for this issue.
2014-09-26 22:08:41 -05:00
#![
crate_type =
"
rlib
"
]
Reference in New Issue
Copy Permalink