xref: /OK3568_Linux_fs/buildroot/package/clang/Config.in (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1config BR2_PACKAGE_CLANG
2	bool "clang"
3	depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
4	depends on BR2_TOOLCHAIN_GCC_AT_LEAST_4_8
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	select BR2_PACKAGE_LLVM
11	help
12	  Clang is a C/C++, Objective C/C++ and OpenCL C front-end
13	  for the LLVM compiler.
14
15	  http://clang.llvm.org
16
17comment "clang needs a toolchain w/ wchar, threads, C++, gcc >= 4.8, dynamic library"
18	depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
19	depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_INSTALL_LIBSTDCPP || \
20		!BR2_TOOLCHAIN_GCC_AT_LEAST_4_8 \
21		|| BR2_STATIC_LIBS || !BR2_USE_WCHAR
22
23comment "clang needs a toolchain not affected by GCC bug 64735"
24	depends on BR2_PACKAGE_LLVM_ARCH_SUPPORTS
25	depends on BR2_TOOLCHAIN_HAS_GCC_BUG_64735
26