[arm] if mtriple is provided, do not set -march (#17937)
commit4c595069e72e6dc39e13c1e322087a502ea000c9
authorBernhard Urban-Forster <lewurm@gmail.com>
Wed, 27 Nov 2019 16:36:03 +0000 (27 17:36 +0100)
committermonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 27 Nov 2019 16:36:03 +0000 (27 17:36 +0100)
treeb06c473e6f2c9449c697bb4236d92c4c6fe261cf
parent9dfeb545d5080192c2b1a7bcf1f87fd05e9c5375
[arm] if mtriple is provided, do not set -march (#17937)

[arm] if mtriple is provided, do not set -march

E.g. when passing `-march=arm -mtriple=armv7s-ios`, `-march` will win and thus ignore `armv7s`.

Fixes https://github.com/mono/mono/issues/17931

* Caused by 5e318afd2e1d5f9ef0fd692abbceadcf615389a5
* Related with 4cd506823079bc15c9ee72da4f94a653f237a5e5
* Almost fixed by e431093f73360b5726e5256fd0de3108ec21b38a

Hopefully we are done with it.
mono/mini/aot-compiler.c