From 9e4c5cf124438891e20947b72d13412d78018800 Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Mon, 1 Feb 2021 19:58:07 +0100 Subject: [PATCH] Add -std=c++14 to build_cross_tools_gcc4 CLang fails to build ISL otherwise, and if you are setting up cross compiling, you should have a modern enough compiler Fixes #16434 Change-Id: Ieb4a33015899896ea3bb2d1abc59b10fe0b4b3f2 Reviewed-on: https://review.haiku-os.org/c/haiku/+/3730 Reviewed-by: Fredrik Holmqvist --- build/scripts/build_cross_tools_gcc4 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/build/scripts/build_cross_tools_gcc4 b/build/scripts/build_cross_tools_gcc4 index f56f2c0932..dfc17d45a2 100755 --- a/build/scripts/build_cross_tools_gcc4 +++ b/build/scripts/build_cross_tools_gcc4 @@ -25,7 +25,8 @@ additionalMakeArgs=$* gdbSourceDir="$HAIKU_USE_GDB" ccFlags="-O2" -cxxFlags="-O2" +#CLang needs c++14 to build ISL: https://dev.haiku-os.org/ticket/16434 +cxxFlags="-O2 -std=c++14" binutilsTargets="$haikuMachine" gdbTarget="$haikuMachine" case $haikuMachine in