When running MCJIT unit test, ensure that the host target is something LLVM can generate code for.
Without this change, the tests could fail if LLVM was configured for cross-compilation e. g. from x86 to ARM.
Differential D67089
Skip MCJIT unit tests if LLVM is not configured for native compilation broadwaylamb on Sep 3 2019, 2:52 AM. Authored by
Details When running MCJIT unit test, ensure that the host target is something LLVM can generate code for. Without this change, the tests could fail if LLVM was configured for cross-compilation e. g. from x86 to ARM.
Diff Detail
Event Timeline
|
This was not in the upstream. I tried to fix these tests by changing this line to sys::getProcessTriple() and committed it to my local git repo, and now reverted it, so Arcanist has caught this change.
The upstream uses sys::getProcessTriple(), so please ignore this change.