]> rtime.felk.cvut.cz Git - coffee/buildroot.git/blob - package/llvm/Config.in
llvm: add dependency on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735
[coffee/buildroot.git] / package / llvm / Config.in
1 config BR2_PACKAGE_LLVM_ARCH_SUPPORTS
2         bool
3         default y if BR2_i386
4         default y if BR2_x86_64
5         default y if BR2_aarch64
6         default y if BR2_arm || BR2_armeb
7
8 config BR2_PACKAGE_LLVM_TARGET_ARCH
9         string
10         default "AArch64" if BR2_aarch64
11         default "ARM" if BR2_arm || BR2_armeb
12         default "X86" if BR2_i386 || BR2_x86_64
13
14 config BR2_PACKAGE_LLVM
15         bool "llvm"
16         depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
17         depends on BR2_HOST_GCC_AT_LEAST_4_8
18         depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
19         depends on BR2_TOOLCHAIN_HAS_THREADS
20         depends on BR2_INSTALL_LIBSTDCPP
21         depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
22         help
23           The LLVM Project is a collection of modular and reusable
24           compiler and toolchain technologies.
25
26           http://llvm.org
27
28 if BR2_PACKAGE_LLVM
29
30 config BR2_PACKAGE_LLVM_AMDGPU
31         bool "AMDGPU backend"
32         help
33           Build AMDGPU target. Select this option if you are going
34           to install mesa3d with llvm and use Gallium Radeon driver.
35
36 endif
37
38 comment "llvm needs a toolchain w/ threads, C++, gcc >= 4.8, host gcc >= 4.8"
39         depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
40         depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
41                 !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
42
43 comment "llvm needs a toolchain not affected by GCC bug 64735"
44         depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
45         depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735