diff options
author | Alexander Kyte <alexmkyte@gmail.com> | 2018-11-07 12:35:46 +0300 |
---|---|---|
committer | monojenkins <jo.shields+jenkins@xamarin.com> | 2018-11-07 12:35:46 +0300 |
commit | 5e318afd2e1d5f9ef0fd692abbceadcf615389a5 (patch) | |
tree | d53bdbedb193a9233db6c62a89d9cbf1f408e62a | |
parent | 5753014eed6e85595bb70bf26e891605792e67f8 (diff) |
[runtime] Fix llvm arm autodetection / fix build (#11172)
[runtime] Fix llvm arm autodetection / fix build
-rw-r--r-- | mono/mini/aot-compiler.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/mono/mini/aot-compiler.c b/mono/mini/aot-compiler.c index 845debf70ff..52ec2ae2c38 100644 --- a/mono/mini/aot-compiler.c +++ b/mono/mini/aot-compiler.c @@ -1090,6 +1090,7 @@ 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 defined(ARM_FPU_VFP_HARD) g_string_append (acfg->llc_args, " -mattr=+vfp2,-neon,+d16 -float-abi=hard"); g_string_append (acfg->as_args, " -mfpu=vfp3"); @@ -1112,6 +1113,7 @@ arch_init (MonoAotCompile *acfg) #endif #ifdef TARGET_ARM64 + g_string_append (acfg->llc_args, " -march=aarch64"); acfg->inst_directive = ".inst"; if (acfg->aot_opts.mtriple) mono_arch_set_target (acfg->aot_opts.mtriple); |