[PATCH] D48778: [llvm-exegesis] Change how the native architecture is determined
Clement Courbet via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 30 03:02:38 PDT 2018
courbet added inline comments.
================
Comment at: tools/llvm-exegesis/CMakeLists.txt:14
# Link the native exegesis target if compiled and on the right host.
-if ((LLVM_TARGETS_TO_BUILD MATCHES "X86") AND ("${LLVM_NATIVE_ARCH}" STREQUAL "X86"))
- set(LLVM_EXEGESIS_NATIVE_ARCH "X86")
+if ((LLVM_TARGETS_TO_BUILD MATCHES "${LLVM_NATIVE_ARCH}") AND (LLVM_EXEGESIS_TARGETS MATCHES "${LLVM_NATIVE_ARCH}"))
+ set(LLVM_EXEGESIS_NATIVE_ARCH "${LLVM_NATIVE_ARCH}")
----------------
Does this work if the variable LLVM_EXEGESIS_TARGETS is never set (e.g. if llvm targets to build is just "ARM") ?
Repository:
rL LLVM
https://reviews.llvm.org/D48778
More information about the llvm-commits
mailing list