[haiku-commits] Change in haiku[master]: Add -std=c++14 to build_cross_tools_gcc4

  • From: Gerrit <review@xxxxxxxxxxxxxxxxxxx>
  • To: waddlesplash <waddlesplash@xxxxxxxxx>, haiku-commits@xxxxxxxxxxxxx
  • Date: Mon, 1 Feb 2021 19:10:35 +0000

From Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>:

Fredrik Holmqvist has uploaded this change for review. ( 
https://review.haiku-os.org/c/haiku/+/3730 ;)


Change subject: Add -std=c++14 to build_cross_tools_gcc4
......................................................................

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
---
M build/scripts/build_cross_tools_gcc4
1 file changed, 2 insertions(+), 1 deletion(-)



  git pull ssh://git.haiku-os.org:22/haiku refs/changes/30/3730/1

diff --git a/build/scripts/build_cross_tools_gcc4 
b/build/scripts/build_cross_tools_gcc4
index f56f2c0..dfc17d4 100755
--- a/build/scripts/build_cross_tools_gcc4
+++ b/build/scripts/build_cross_tools_gcc4
@@ -25,7 +25,8 @@
 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

--
To view, visit https://review.haiku-os.org/c/haiku/+/3730
To unsubscribe, or for help writing mail filters, visit 
https://review.haiku-os.org/settings

Gerrit-Project: haiku
Gerrit-Branch: master
Gerrit-Change-Id: Ieb4a33015899896ea3bb2d1abc59b10fe0b4b3f2
Gerrit-Change-Number: 3730
Gerrit-PatchSet: 1
Gerrit-Owner: Fredrik Holmqvist <fredrik.holmqvist@xxxxxxxxx>
Gerrit-MessageType: newchange

Other related posts:

  • » [haiku-commits] Change in haiku[master]: Add -std=c++14 to build_cross_tools_gcc4 - Gerrit