Cache directory hierarchy (#217)

* Simple module compilation cache

* Fix base64 encoding bug

* Use warn! everywhere in cache system

* Remove unused import

* Temporary workaround for long path on Windows

* Remove unused import for non-windows builds

* Cache directory hierarchy

* Fix conditional compilation for debug mode

* Minor enhancements
This commit is contained in:
Artur Jamro
2019-07-26 07:24:58 -07:00
committed by Dan Gohman
parent 165dc4944d
commit b7d86af0ec
3 changed files with 101 additions and 36 deletions

View File

@@ -124,7 +124,7 @@ impl crate::compilation::Compiler for Cranelift {
isa: &dyn isa::TargetIsa,
generate_debug_info: bool,
) -> Result<(Compilation, Relocations, ModuleAddressMap), CompileError> {
let cache_entry = ModuleCacheEntry::new(module, isa, generate_debug_info);
let cache_entry = ModuleCacheEntry::new(module, isa, "cranelift", generate_debug_info);
let data = match cache_entry.get_data() {
Some(data) => data,