[mono] Fix setMArch, getArchName() doesn't work as expected (#34368)
authorEgor Bogatov <egorbo@gmail.com>
Wed, 1 Apr 2020 12:23:24 +0000 (15:23 +0300)
committerGitHub <noreply@github.com>
Wed, 1 Apr 2020 12:23:24 +0000 (14:23 +0200)
commitab45b5147edc0f30ce10b8a9c3d44804051c0135
tree2e6e40fe5086699317ef53118eb61e368f5d6ac5
parent97af1e49abd7ec610b73c766f4066c173ec17173
[mono] Fix setMArch, getArchName() doesn't work as expected (#34368)

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
src/mono/mono/mini/llvm-jit.cpp