aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-core/llvm
diff options
context:
space:
mode:
authorMartin Jansa <Martin.Jansa@gmail.com>2013-04-27 11:48:54 +0200
committerMartin Jansa <Martin.Jansa@gmail.com>2013-04-29 10:37:32 +0200
commit69400d286b9d2e03046510ec6089a24611e50e05 (patch)
tree410c5840d8e1080d8ee8c6ac35367f28fb4d69bc /meta-oe/recipes-core/llvm
parent47ad5b8d9eeeb0dcfbe1ccf232d12ccf4d25bd84 (diff)
downloadmeta-openembedded-69400d286b9d2e03046510ec6089a24611e50e05.tar.gz
meta-openembedded-69400d286b9d2e03046510ec6089a24611e50e05.tar.bz2
meta-openembedded-69400d286b9d2e03046510ec6089a24611e50e05.zip
llvm2.9: add LLVM_EXTRA_ARCH to enable X86 unless building for x86
* now I see why it was there before, at least on arm it fails with: | CMake Error at cmake/modules/LLVMConfig.cmake:127 (message): | Library `X86' not found in list of llvm libraries. Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Diffstat (limited to 'meta-oe/recipes-core/llvm')
-rw-r--r--meta-oe/recipes-core/llvm/llvm2.9_2.9.bb6
1 files changed, 5 insertions, 1 deletions
diff --git a/meta-oe/recipes-core/llvm/llvm2.9_2.9.bb b/meta-oe/recipes-core/llvm/llvm2.9_2.9.bb
index 04195d968..2b46162e9 100644
--- a/meta-oe/recipes-core/llvm/llvm2.9_2.9.bb
+++ b/meta-oe/recipes-core/llvm/llvm2.9_2.9.bb
@@ -17,9 +17,13 @@ SRC_URI_append_libc-uclibc = " file://arm_fenv_uclibc.patch "
PARALLEL_MAKE_virtclass-native = ""
+LLVM_EXTRA_ARCH = "X86;"
+LLVM_EXTRA_ARCH_x86 = ""
+LLVM_EXTRA_ARCH_x86-64 = ""
+
EXTRA_OECMAKE = "\
-DLLVM_TABLEGEN=${STAGING_BINDIR_NATIVE}/llvm${LLVM_RELEASE}/tblgen \
- -DLLVM_TARGETS_TO_BUILD="${LLVM_ARCH}" \
+ -DLLVM_TARGETS_TO_BUILD="${LLVM_EXTRA_ARCH}${LLVM_ARCH}" \
-DCMAKE_LINKER:FILEPATH=${LD} \
-DCMAKE_AR:FILEPATH=${AR} \
-DCMAKE_OBJCOPY:FILEPATH=${OBJCOPY} \