]> git.lizzy.rs Git - rust.git/commitdiff
Move bundled gcc and its libs out into $rust/rustlib/<triple>/gcc/(bin|lib). This...
authorVadim Chugunov <vadimcn@gmail.com>
Sat, 20 Sep 2014 18:42:10 +0000 (11:42 -0700)
committerVadim Chugunov <vadimcn@gmail.com>
Sat, 20 Sep 2014 18:42:26 +0000 (11:42 -0700)
src/etc/make-win-dist.py
src/librustc/metadata/filesearch.rs

index bb9a112b7b28a3bba3233b15aa13fa02603ca5f2..9d883dec968ee918783a67cc4a0f9e5d0d9e46ce 100644 (file)
@@ -58,15 +58,15 @@ def make_win_dist(dist_root, target_triple):
     for src in rustc_dlls:
         shutil.copy(src, dist_bin_dir)
 
-    # Copy platform tools (and another copy of runtime dlls) to platform-spcific bin directory
-    target_bin_dir = os.path.join(dist_root, "bin", "rustlib", target_triple, "bin")
+    # Copy platform tools to platform-specific bin directory
+    target_bin_dir = os.path.join(dist_root, "bin", "rustlib", target_triple, "gcc", "bin")
     if not os.path.exists(target_bin_dir):
         os.makedirs(target_bin_dir)
     for src in target_tools:
         shutil.copy(src, target_bin_dir)
 
     # Copy platform libs to platform-spcific lib directory
-    target_lib_dir = os.path.join(dist_root, "bin", "rustlib", target_triple, "lib")
+    target_lib_dir = os.path.join(dist_root, "bin", "rustlib", target_triple, "gcc", "lib")
     if not os.path.exists(target_lib_dir):
         os.makedirs(target_lib_dir)
     for src in target_libs:
index 148aaf9568675ce08bc1d6bef0053bf8434f634c..553ec096521cd403d59a00ef6e8c6b0bb84c66d9 100644 (file)
@@ -150,8 +150,12 @@ pub fn get_tools_search_paths(&self) -> Vec<Path> {
         p.push(find_libdir(self.sysroot));
         p.push(rustlibdir());
         p.push(self.triple);
-        p.push("bin");
-        vec![p]
+        let mut p1 = p.clone();
+        p1.push("bin");
+        let mut p2 = p.clone();
+        p2.push("gcc");
+        p2.push("bin");
+        vec![p1, p2]
     }
 }