Config.in 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  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. default y if BR2_riscv
  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. default "riscv32" if BR2_riscv && !BR2_ARCH_IS_64
  14. default "riscv64" if BR2_riscv && BR2_ARCH_IS_64
  15. config BR2_PACKAGE_LLVM
  16. bool "llvm"
  17. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  18. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
  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. depends on !BR2_STATIC_LIBS
  23. depends on BR2_USE_WCHAR # std::wstring
  24. depends on BR2_HOST_GCC_AT_LEAST_7 # host-llvm
  25. help
  26. The LLVM Project is a collection of modular and reusable
  27. compiler and toolchain technologies.
  28. http://llvm.org
  29. if BR2_PACKAGE_LLVM
  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. config BR2_PACKAGE_LLVM_RTTI
  36. bool "enable rtti"
  37. help
  38. Build LLVM with run-time type information. LLVM can be built
  39. without rtti, but turning it off changes the ABI of C++
  40. programs.
  41. This features is needed to build the Gallium Nouveau driver
  42. or the Clover OpenCL state tracker when llvm support is
  43. enabled.
  44. https://llvm.org/docs/HowToSetUpLLVMStyleRTTI.html
  45. config BR2_PACKAGE_LLVM_BPF
  46. bool "BPF backend"
  47. help
  48. Build BPF target. Select this option if you are going
  49. to install bcc on the target.
  50. config BR2_PACKAGE_LLVM_DUMP
  51. bool "enable dump"
  52. help
  53. Build LLVM with dump functions even when assertions are
  54. disabled.
  55. endif
  56. comment "llvm needs a toolchain w/ wchar, threads, C++, gcc >= 7, dynamic library, host gcc >= 7"
  57. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  58. depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
  59. !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
  60. || BR2_STATIC_LIBS || !BR2_USE_WCHAR \
  61. || !BR2_HOST_GCC_AT_LEAST_7
  62. comment "llvm needs a toolchain not affected by GCC bug 64735"
  63. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  64. depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735