Skip to content

Commit 91dc696

Browse files
committed
Implement RFC 2951: Native link modifiers
This commit implements both the native linking modifiers infrastructure as well as an initial attempt at the individual modifiers from the RFC. It also introduces a feature flag for the general syntax along with individual feature flags for each modifier.
1 parent 0a1b87c commit 91dc696

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/archive.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> {
8585
));
8686
}
8787

88-
fn add_native_library(&mut self, name: rustc_span::symbol::Symbol) {
89-
let location = find_library(name, &self.lib_search_paths, self.sess);
88+
fn add_native_library(&mut self, name: rustc_span::symbol::Symbol, verbatim: bool) {
89+
let location = find_library(name, verbatim, &self.lib_search_paths, self.sess);
9090
self.add_archive(location.clone(), |_| false).unwrap_or_else(|e| {
9191
panic!("failed to add native library {}: {}", location.to_string_lossy(), e);
9292
});

0 commit comments

Comments
 (0)