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