2
1

Config.in 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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. config BR2_PACKAGE_LLVM_TARGET_ARCH
  8. string
  9. default "AArch64" if BR2_aarch64
  10. default "ARM" if BR2_arm || BR2_armeb
  11. default "X86" if BR2_i386 || BR2_x86_64
  12. config BR2_PACKAGE_LLVM
  13. bool "llvm"
  14. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  15. depends on BR2_HOST_GCC_AT_LEAST_4_8
  16. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
  17. depends on BR2_TOOLCHAIN_HAS_THREADS
  18. depends on BR2_INSTALL_LIBSTDCPP
  19. depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
  20. depends on !BR2_STATIC_LIBS
  21. depends on BR2_USE_WCHAR # std::wstring
  22. help
  23. The LLVM Project is a collection of modular and reusable
  24. compiler and toolchain technologies.
  25. http://llvm.org
  26. if BR2_PACKAGE_LLVM
  27. config BR2_PACKAGE_LLVM_AMDGPU
  28. bool "AMDGPU backend"
  29. help
  30. Build AMDGPU target. Select this option if you are going
  31. to install mesa3d with llvm and use Gallium Radeon driver.
  32. endif
  33. comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 4.8, host gcc >= 4.8, dynamic library"
  34. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  35. depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
  36. !BR2_HOST_GCC_AT_LEAST_4_8 || !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
  37. || BR2_STATIC_LIBS || !BR2_USE_WCHAR
  38. comment "llvm needs a toolchain not affected by GCC bug 64735"
  39. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  40. depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735