[mono] Fix setMArch, getArchName() doesn't work as expected (#19403)
commita92528508e8295bc53600fc0abf3e5ba7ab24bb0
authormonojenkins <jo.shields+jenkins@xamarin.com>
Wed, 1 Apr 2020 12:23:31 +0000 (1 08:23 -0400)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2020 12:23:31 +0000 (1 14:23 +0200)
tree9d6d2832030cf2e62de2e8e20b3b63ee7289ca86
parentad0ee22923c68f932ea2d04ef4dc51d9df9b8e40
[mono] Fix setMArch, getArchName() doesn't work as expected (#19403)

Turns out `llvm::Triple(llvm::sys::getDefaultTargetTriple()).getArchName()` doesn't work as expected on all targets so the only option is to set arch via defines.

NOTE: it accepts "x86-64", not "x86_64

Co-authored-by: EgorBo <EgorBo@users.noreply.github.com>
mono/mini/llvm-jit.cpp