diff options
| author | Luqman Aden <me@luqman.ca> | 2021-03-24 21:45:09 -0700 |
|---|---|---|
| committer | Luqman Aden <me@luqman.ca> | 2021-05-05 16:04:25 -0700 |
| commit | 91dc6967fe5ebb8ff773a168e549482c18bb92d8 (patch) | |
| tree | 7b61bda991ef625fd573a665534cbd45ed0ba798 | |
| parent | 0a1b87c9ce295030a373cc4e37cac7e89294903f (diff) | |
| download | rust-91dc6967fe5ebb8ff773a168e549482c18bb92d8.tar.gz rust-91dc6967fe5ebb8ff773a168e549482c18bb92d8.zip | |
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.
| -rw-r--r-- | src/archive.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/archive.rs b/src/archive.rs index 7583fc42407..fc0823302e0 100644 --- a/src/archive.rs +++ b/src/archive.rs @@ -85,8 +85,8 @@ impl<'a> ArchiveBuilder<'a> for ArArchiveBuilder<'a> { )); } - fn add_native_library(&mut self, name: rustc_span::symbol::Symbol) { - let location = find_library(name, &self.lib_search_paths, self.sess); + fn add_native_library(&mut self, name: rustc_span::symbol::Symbol, verbatim: bool) { + let location = find_library(name, verbatim, &self.lib_search_paths, self.sess); self.add_archive(location.clone(), |_| false).unwrap_or_else(|e| { panic!("failed to add native library {}: {}", location.to_string_lossy(), e); }); |
