Skip to content

Commit

Permalink
[aot] Avoid passing -march=arm to llc when using thumb, it forces arm…
Browse files Browse the repository at this point in the history
…32 code generation. (mono#14288)

Fixes mono#14247.
  • Loading branch information
vargaz authored May 1, 2019
1 parent a27a773 commit e431093
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mono/mini/aot-compiler.c
Original file line number Diff line number Diff line change
Expand Up @@ -1117,7 +1117,8 @@ arch_init (MonoAotCompile *acfg)
if (acfg->aot_opts.mtriple && strstr (acfg->aot_opts.mtriple, "darwin")) {
g_string_append (acfg->llc_args, "-mattr=+v6");
} else {
g_string_append (acfg->llc_args, " -march=arm");
if (!(acfg->aot_opts.mtriple && strstr (acfg->aot_opts.mtriple, "thumb")))
g_string_append (acfg->llc_args, " -march=arm");

if (acfg->aot_opts.mtriple && strstr (acfg->aot_opts.mtriple, "ios"))
g_string_append (acfg->llc_args, " -mattr=+v7");
Expand Down

0 comments on commit e431093

Please sign in to comment.