[mtouch] Quote the .dylib used for incremental builds. Fixes #42006 (#303)

Fix MT3001 AOT errors due to incorrect paths.

https://bugzilla.xamarin.com/show_bug.cgi?id=42006
This commit is contained in:
Sebastien Pouliot 2016-06-28 12:51:05 -04:00 коммит произвёл GitHub
Родитель 77954eac92
Коммит 67470d439c
2 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1900,7 +1900,7 @@ namespace Xamarin.Bundler {
if (!App.EnableMarkerOnlyBitCode)
flags.AddOtherFlag ("-read_only_relocs suppress");
flags.LinkWithMono ();
flags.AddOtherFlag ($"-install_name @executable_path/{install_name}");
flags.AddOtherFlag ("-install_name " + Driver.Quote ($"@executable_path/{install_name}"));
flags.AddOtherFlag ("-fapplication-extension"); // fixes this: warning MT5203: Native linking warning: warning: linking against dylib not safe for use in application extensions: [..]/actionextension.dll.arm64.dylib
}

Просмотреть файл

@ -377,7 +377,7 @@ namespace Xamarin.Bundler {
var assembly = Path.Combine (build_dir, FileName);
if (App.FastDev)
Dylib = Path.Combine (App.AppDirectory, "lib" + Path.GetFileName (FullPath) + ".dylib");
Dylib = Path.Combine (App.AppDirectory, Driver.Quote ("lib" + Path.GetFileName (FullPath) + ".dylib"));
foreach (var abi in abis) {
var task = CreateManagedToAssemblyTasks (assembly, abi, build_dir);