|
@@ -15,6 +15,13 @@ CLANG_INSTALL_STAGING = YES
|
|
|
HOST_CLANG_DEPENDENCIES = host-llvm host-libxml2
|
|
|
CLANG_DEPENDENCIES = llvm host-clang
|
|
|
|
|
|
+# LLVM >= 9.0 will soon require C++14 support, building llvm 8.x using a
|
|
|
+# toolchain using gcc < 5.1 gives an error but actually still works. Setting
|
|
|
+# this option makes it still build with gcc >= 4.8.
|
|
|
+# https://reviews.llvm.org/D57264
|
|
|
+HOST_CLANG_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
|
|
|
+CLANG_CONF_OPTS += -DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN=ON
|
|
|
+
|
|
|
# This option is needed, otherwise multiple shared libs
|
|
|
# (libclangAST.so, libclangBasic.so, libclangFrontend.so, etc.) will
|
|
|
# be generated. As a final shared lib containing all these components
|