Use target triple in cache directory hierarchy (#300)

This commit is contained in:
Artur Jamro
2019-09-04 13:12:27 -07:00
committed by Dan Gohman
parent cc63d9df49
commit 364300f6cf
2 changed files with 2 additions and 1 deletions

View File

@@ -231,7 +231,7 @@ impl ModuleCacheEntry {
); );
Some( Some(
conf::cache_directory() conf::cache_directory()
.join(isa.name()) .join(isa.triple().to_string())
.join(compiler_dir) .join(compiler_dir)
.join(mod_filename), .join(mod_filename),
) )

View File

@@ -4,6 +4,7 @@
use core::ptr; use core::ptr;
use core::slice; use core::slice;
use errno; use errno;
#[cfg(not(target_os = "windows"))]
use libc; use libc;
use region; use region;
use std::string::{String, ToString}; use std::string::{String, ToString};