Skip to content

Commit 337d9a9

Browse files
author
eulegang
committed
renaming ld_options -> ld_args
1 parent 90b9291 commit 337d9a9

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ pub struct Library {
9898
pub frameworks: Vec<String>,
9999
pub framework_paths: Vec<PathBuf>,
100100
pub include_paths: Vec<PathBuf>,
101-
pub ld_options: Vec<Vec<String>>,
101+
pub ld_args: Vec<Vec<String>>,
102102
pub defines: HashMap<String, Option<String>>,
103103
pub version: String,
104104
_priv: (),
@@ -558,7 +558,7 @@ impl Library {
558558
libs: Vec::new(),
559559
link_paths: Vec::new(),
560560
include_paths: Vec::new(),
561-
ld_options: Vec::new(),
561+
ld_args: Vec::new(),
562562
frameworks: Vec::new(),
563563
framework_paths: Vec::new(),
564564
defines: HashMap::new(),
@@ -698,7 +698,7 @@ impl Library {
698698
let meta = format!("rustc-link-arg=-Wl,{}", ld_option.join(","));
699699
config.print_metadata(&meta);
700700

701-
self.ld_options
701+
self.ld_args
702702
.push(ld_option.into_iter().map(String::from).collect());
703703
}
704704
}

tests/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,6 @@ fn rpath() {
318318
reset();
319319
let lib = find("rpath").unwrap();
320320
assert!(lib
321-
.ld_options
321+
.ld_args
322322
.contains(&vec!["-rpath".to_string(), "/usr/local/lib".to_string(),]));
323323
}

0 commit comments

Comments
 (0)