diff options
author | Ben Bridle <ben@derelict.engineering> | 2025-03-18 11:49:12 +1300 |
---|---|---|
committer | Ben Bridle <ben@derelict.engineering> | 2025-03-18 12:03:59 +1300 |
commit | 24080dd75092ea5ef8c10fd179aa28b8db534c7f (patch) | |
tree | ae03afbb83f09ef064de5cc8a60baa06d5a75cb0 /src/processors/compiler.rs | |
parent | f8a694267d3981b0437c05fc248406116ea9ec06 (diff) | |
download | assembler-24080dd75092ea5ef8c10fd179aa28b8db534c7f.zip |
Update version to 2.2.0v2.2.0
Diffstat (limited to 'src/processors/compiler.rs')
-rw-r--r-- | src/processors/compiler.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/processors/compiler.rs b/src/processors/compiler.rs index 626dfd3..b3544b6 100644 --- a/src/processors/compiler.rs +++ b/src/processors/compiler.rs @@ -32,7 +32,7 @@ impl Compiler { } /// Find library files descending from the parent directory. - pub fn include_libs_from_parent(&mut self, ext: &str) { + pub fn include_libs_from_parent(&mut self, ext: Option<&str>) { if let Some(path) = &self.source_path { if let Some(parent_path) = path.parent() { let parent_path = parent_path.to_owned(); @@ -42,15 +42,15 @@ impl Compiler { } /// Find library files at or descending from a path. - pub fn include_libs_from_path(&mut self, path: &Path, ext: &str) { - let libraries = gather_from_path(path, Some(ext), self.parse_symbols); + pub fn include_libs_from_path(&mut self, path: &Path, ext: Option<&str>) { + let libraries = gather_from_path(path, ext, self.parse_symbols); self.resolver.add_library_source_units(libraries); self.resolver.resolve(); } /// Find library files from a PATH-style environment variable. - pub fn include_libs_from_path_variable(&mut self, name: &str, ext: &str) { - let libraries = gather_from_path_variable(name, Some(ext), self.parse_symbols); + pub fn include_libs_from_path_variable(&mut self, name: &str, ext: Option<&str>) { + let libraries = gather_from_path_variable(name, ext, self.parse_symbols); self.resolver.add_library_source_units(libraries); self.resolver.resolve(); } |