Skip to content

Commit 20308e6

Browse files
authored
[aot] Do not wrap tool_prefix path when calling strip (#16820)
[2019-08] [aot] Do not put quotes around wrapped path Should fix: dotnet/android#3619 As it results in double quoting, which vanishes the effect and breaks AOT for XA on Windows. The actual error: [aot-compiler stdout] Stripping the binary: ""C:\Program Files (x86)\Microsoft Visual Studio\2019\Stable\MSBuild\Xamarin\Android\ndk\arm-linux-androideabi-"strip" --strip-symbol=\$a --strip-symbol=\$d obj\Release\90\aot\armeabi-v7a\libaot-Xamarin.Android.Arch.Core.Common.dll.so.tmp [aot-compiler stderr] '""C:\Program' is not recognized as an internal or external command, [aot-compiler stderr] operable program or batch file. [aot-compiler stderr] AOT of image C:\Users\peter\source\repos\App9\App9\App9.Android\obj\Release\90\android\assets\Xamarin.Android.Support.CoordinaterLayout.dll failed. Backport of #16792. /cc @lewurm @radekdoulik
1 parent cecda47 commit 20308e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mono/mini/aot-compiler.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12049,7 +12049,7 @@ compile_asm (MonoAotCompile *acfg)
1204912049
* gas generates 'mapping symbols' each time code and data is mixed, which
1205012050
* happens a lot in emit_and_reloc_code (), so we need to get rid of them.
1205112051
*/
12052-
command = g_strdup_printf ("\"%sstrip\" --strip-symbol=\\$a --strip-symbol=\\$d %s", wrap_path(tool_prefix), wrap_path(tmp_outfile_name));
12052+
command = g_strdup_printf ("\"%sstrip\" --strip-symbol=\\$a --strip-symbol=\\$d %s", tool_prefix, wrap_path(tmp_outfile_name));
1205312053
aot_printf (acfg, "Stripping the binary: %s\n", command);
1205412054
if (execute_system (command) != 0) {
1205512055
g_free (tmp_outfile_name);

0 commit comments

Comments
 (0)