* [Buildroot] [PATCH 1/1] package/clang: fix build with gcc < 5.1
@ 2019-04-15 19:14 Valentin Korenblit
2019-04-15 19:26 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: Valentin Korenblit @ 2019-04-15 19:14 UTC (permalink / raw)
To: buildroot
Fixes:
http://autobuild.buildroot.net/results/dc2302844a1d274e63da72023b6fd7be993f97b7
Signed-off-by: Valentin Korenblit <valentinkorenblit@gmail.com>
---
package/clang/clang.mk | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/package/clang/clang.mk b/package/clang/clang.mk
index 6dda8ac2c3..0cab1c7f89 100644
--- a/package/clang/clang.mk
+++ b/package/clang/clang.mk
@@ -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
--
2.11.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH 1/1] package/clang: fix build with gcc < 5.1
2019-04-15 19:14 [Buildroot] [PATCH 1/1] package/clang: fix build with gcc < 5.1 Valentin Korenblit
@ 2019-04-15 19:26 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2019-04-15 19:26 UTC (permalink / raw)
To: buildroot
On Mon, 15 Apr 2019 21:14:01 +0200
Valentin Korenblit <valentinkorenblit@gmail.com> wrote:
> Fixes:
> http://autobuild.buildroot.net/results/dc2302844a1d274e63da72023b6fd7be993f97b7
>
> Signed-off-by: Valentin Korenblit <valentinkorenblit@gmail.com>
> ---
> package/clang/clang.mk | 7 +++++++
> 1 file changed, 7 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-04-15 19:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-15 19:14 [Buildroot] [PATCH 1/1] package/clang: fix build with gcc < 5.1 Valentin Korenblit
2019-04-15 19:26 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox