Config.in 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  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_TOOLCHAIN_GCC_AT_LEAST_4_8
  16. depends on BR2_TOOLCHAIN_HAS_THREADS
  17. depends on BR2_INSTALL_LIBSTDCPP
  18. depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
  19. depends on !BR2_STATIC_LIBS
  20. depends on BR2_USE_WCHAR # std::wstring
  21. help
  22. The LLVM Project is a collection of modular and reusable
  23. compiler and toolchain technologies.
  24. http://llvm.org
  25. if BR2_PACKAGE_LLVM
  26. config BR2_PACKAGE_LLVM_AMDGPU
  27. bool "AMDGPU backend"
  28. help
  29. Build AMDGPU target. Select this option if you are going
  30. to install mesa3d with llvm and use Gallium Radeon driver.
  31. config BR2_PACKAGE_LLVM_RTTI
  32. bool "enable rtti"
  33. help
  34. Build LLVM with run-time type information. LLVM can be built
  35. without rtti, but turning it off changes the ABI of C++
  36. programs.
  37. This features is needed to build the Gallium Nouveau driver
  38. or the Clover OpenCL state tracker when llvm support is
  39. enabled.
  40. https://llvm.org/docs/HowToSetUpLLVMStyleRTTI.html
  41. endif
  42. comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 4.8, dynamic library"
  43. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  44. depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
  45. !BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
  46. || BR2_STATIC_LIBS || !BR2_USE_WCHAR
  47. comment "llvm needs a toolchain not affected by GCC bug 64735"
  48. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  49. depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735