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
087a0136d0
rust
/
tests
/
run-make-fulldeps
/
staticlib-blank-lib
/
foo.rs
7 lines
97 B
Rust
Raw
Normal View
History
Unescape
Escape
Use new attribute syntax in python files in src/etc too (#13478)
2014-04-14 10:30:31 -05:00
#![
crate_type =
"
staticlib
"
]
Fix staticlib outputs linking to blank archives When creating a staticlib, it unzips all static archives it finds and then inserts the files manually into the output file. This process is done through `ar`, and `ar` doesn't like if you specify you want to add files and you don't give it any files. This case arose whenever you linked to an archive that didn't have any contents or all of the contents were filtered out. This just involved ignoring the case where the number of inputs we have is 0, because we don't have any files to add anyway.
2014-02-18 18:05:05 -06:00
#[
link(name =
"
foo
"
, kind =
"
static
"
)
]
Update tests for extern block linting
2020-09-01 16:12:52 -05:00
extern
"
C
"
{
}
Fix staticlib outputs linking to blank archives When creating a staticlib, it unzips all static archives it finds and then inserts the files manually into the output file. This process is done through `ar`, and `ar` doesn't like if you specify you want to add files and you don't give it any files. This case arose whenever you linked to an archive that didn't have any contents or all of the contents were filtered out. This just involved ignoring the case where the number of inputs we have is 0, because we don't have any files to add anyway.
2014-02-18 18:05:05 -06:00
fn
main
(
)
{
}
Reference in New Issue
Copy Permalink