summaryrefslogtreecommitdiffstats
path: root/package/llvm/Config.in
diff options
context:
space:
mode:
Diffstat (limited to 'package/llvm/Config.in')
-rw-r--r--package/llvm/Config.in30
1 files changed, 30 insertions, 0 deletions
diff --git a/package/llvm/Config.in b/package/llvm/Config.in
new file mode 100644
index 0000000000..408fde2e39
--- /dev/null
+++ b/package/llvm/Config.in
@@ -0,0 +1,30 @@
+config BR2_PACKAGE_LLVM_ARCH_SUPPORTS
+ bool
+ default y if BR2_i386
+ default y if BR2_x86_64
+ default y if BR2_aarch64
+ default y if BR2_arm || BR2_armeb
+
+config BR2_PACKAGE_LLVM_TARGET_ARCH
+ string
+ default "AArch64" if BR2_aarch64
+ default "ARM" if BR2_arm || BR2_armeb
+ default "X86" if BR2_i386 || BR2_x86_64
+
+config BR2_PACKAGE_LLVM
+ bool "llvm"
+ depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
+ depends on BR2_HOST_GCC_AT_LEAST_4_8
+ depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ depends on BR2_INSTALL_LIBSTDCPP
+ help
+ The LLVM Project is a collection of modular and reusable
+ compiler and toolchain technologies.
+
+ http://llvm.org
+
+comment "llvm needs a toolchain w/ threads, C++, gcc >= 4.8, host gcc >= 4.8"
+ depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
+ depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
+ !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
OpenPOWER on IntegriCloud