]> git.lizzy.rs Git - rust.git/commitdiff
Fix project dirs path
authorsoc <simon@ochsenreither.de>
Fri, 14 Jun 2019 21:17:27 +0000 (23:17 +0200)
committerSimon Ochsenreither <simon@ochsenreither.de>
Sat, 15 Jun 2019 15:03:16 +0000 (17:03 +0200)
    ProjectDirs::from("miri", "miri", "miri")

would get you `miri\miri` on Windows and `miri.miri.miri` on macOS.

I'm assuming here that your intention was to have only a `miri` directory on every OS.

.appveyor.yml
src/bin/cargo-miri.rs

index d13ce2b3974de8103cf8d4ce6f415e930742d468..fe450922e044af4d73278278639285e6620471e9 100644 (file)
@@ -36,7 +36,7 @@ build_script:
     - cargo install --all-features --force --path . --locked --offline
     # Get ourselves a MIR-full libstd, and use it henceforth
     - cargo miri setup
-    - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\miri\miri\cache\HOST
+    - set MIRI_SYSROOT=%USERPROFILE%\AppData\Local\miri\cache\HOST
 
 test_script:
     # Test miri
index 3b7af9324194533bb4226b4fba50ebc20a2a150a..0b2662fe3fb051699741f4472aeddabc50269103 100644 (file)
@@ -248,7 +248,7 @@ fn setup(ask_user: bool) {
     }
 
     // Next, we need our own libstd. We will do this work in whatever is a good cache dir for this platform.
-    let dirs = directories::ProjectDirs::from("miri", "miri", "miri").unwrap();
+    let dirs = directories::ProjectDirs::from("", "", "miri").unwrap();
     let dir = dirs.cache_dir();
     if !dir.exists() {
         fs::create_dir_all(&dir).unwrap();