2
1

Config.in 980 B

123456789101112131415161718192021222324252627
  1. config BR2_PACKAGE_CLANG
  2. bool "clang"
  3. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  4. depends on BR2_TOOLCHAIN_GCC_AT_LEAST_7
  5. depends on BR2_TOOLCHAIN_HAS_THREADS
  6. depends on BR2_INSTALL_LIBSTDCPP
  7. depends on !BR2_TOOLCHAIN_HAS_GCC_BUG_64735 # std::shared_future
  8. depends on !BR2_STATIC_LIBS
  9. depends on BR2_USE_WCHAR # std::wstring
  10. depends on BR2_HOST_GCC_AT_LEAST_7
  11. select BR2_PACKAGE_LLVM
  12. help
  13. Clang is a C/C++, Objective C/C++ and OpenCL C front-end
  14. for the LLVM compiler.
  15. http://clang.llvm.org
  16. comment "clang needs a toolchain w/ wchar, threads, C++, gcc >= 7, dynamic library, host gcc >= 7"
  17. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  18. depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
  19. !BR2_TOOLCHAIN_GCC_AT_LEAST_7 \
  20. || BR2_STATIC_LIBS || !BR2_USE_WCHAR \
  21. || !BR2_HOST_GCC_AT_LEAST_7
  22. comment "clang needs a toolchain not affected by GCC bug 64735"
  23. depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
  24. depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735