Fix CMake LLVM_TARGETS_TO_BUILD "Native" option to work with JIT
authorMehdi Amini <joker.eph@gmail.com>
Tue, 2 Feb 2021 18:47:10 +0000 (18:47 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Tue, 2 Feb 2021 18:47:15 +0000 (18:47 +0000)
commitbb0212929e36732585f0b43f9b0301af51953667
tree00f012614c5415b03d065355fee4f65ef3bb3cfe
parentb4106f9c7b8c498d109301ced7bf9aca32027168
Fix CMake LLVM_TARGETS_TO_BUILD "Native" option to work with JIT

LLVM_TARGETS_TO_BUILD accepts both "host" or "Native" for auto-selecting
the target from the environment. However the way "Native" was plumbed
would lead to the JIT environment being disabled. This patch is making
"Native" works just as "host".

Reviewed By: rnk

Differential Revision: https://reviews.llvm.org/D95837
llvm/CMakeLists.txt
llvm/cmake/config-ix.cmake