[runtime] Fix path resolving for mkbundle
authorAlexander Kyte <alexmkyte@gmail.com>
Wed, 3 May 2017 15:48:37 +0000 (11:48 -0400)
committerAlexander Kyte <alexmkyte@gmail.com>
Wed, 30 Aug 2017 16:52:42 +0000 (12:52 -0400)
mcs/tools/mkbundle/mkbundle.cs

index 6691ead136ca2d6ab325bca35c227f3f5716dbb0..dd19a7b2b216f290fd299c2aa53539485c756527 100755 (executable)
@@ -1467,8 +1467,9 @@ void          mono_register_config_for_assembly (const char* assembly_name, cons
                }
                if (aot_dedup_assembly != null) {
                        string fileName = files [(int) aot_dedup_assembly];
-                       string path = LocateFile (new Uri (fileName).LocalPath);
-                       dedup_mode_string = String.Format (",dedup-include={0}", path);
+                       var filePath = new Uri (fileName).LocalPath;
+                       string path = LocateFile (filePath);
+                       dedup_mode_string = String.Format (",dedup-include={0}", Path.GetFileName(filePath));
                        string outPath = String.Format ("{0}.aot_out", path);
                        Execute (String.Format ("{0} --aot={1},outfile={2}{3}{4} {5} {6}",
                                aot_runtime, aot_args, outPath, aot_mode_string, dedup_mode_string, path, all_assemblies.ToString ()));