summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDylan McKay <me@dylanmckay.io>2019-01-20 11:12:39 +0000
committerDylan McKay <me@dylanmckay.io>2019-01-20 11:12:39 +0000
commitc115d73881104342ee301823795521453f2a9aab (patch)
treef4161010ff6d6a32d8aee4213bd1877be9090b4d
parentcca7c7338e1a4847bf9a6cd19b88b5fa4d635085 (diff)
downloadbcm5719-llvm-c115d73881104342ee301823795521453f2a9aab.tar.gz
bcm5719-llvm-c115d73881104342ee301823795521453f2a9aab.zip
[AVR] Allow AVR to be explicitly set as the default target triple
This extends the CMake cross compilation logic so that AVR can be set as the default target triple, and thus the generic codegen tests can be run. This used to be possible on AVR; the CMake configuration files have since been changed. With this patch, 'cmake -DLLVM_DEFAULT_TARGET_TRIPLE=avr-unknown-unknown' can be passed on the command line, making the `-mcpu` argument redundant to 'llc' and friends. llvm-svn: 351678
-rw-r--r--llvm/cmake/config-ix.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/cmake/config-ix.cmake b/llvm/cmake/config-ix.cmake
index 900c35ee4f0..30ee2b9cbb6 100644
--- a/llvm/cmake/config-ix.cmake
+++ b/llvm/cmake/config-ix.cmake
@@ -392,6 +392,8 @@ elseif (LLVM_NATIVE_ARCH MATCHES "arm64")
set(LLVM_NATIVE_ARCH AArch64)
elseif (LLVM_NATIVE_ARCH MATCHES "arm")
set(LLVM_NATIVE_ARCH ARM)
+elseif (LLVM_NATIVE_ARCH MATCHES "avr")
+ set(LLVM_NATIVE_ARCH AVR)
elseif (LLVM_NATIVE_ARCH MATCHES "mips")
set(LLVM_NATIVE_ARCH Mips)
elseif (LLVM_NATIVE_ARCH MATCHES "xcore")
OpenPOWER on IntegriCloud