Skip to contentSkip to conversation

package/ninja: remove fdiagnostics-color from make command

PATCH New Adam Duskett 2 participants 2 messages Feb 3, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/ninja: remove fdiagnostics-color from make command

-fdiagnostics-color was introduced in gcc 4.9 and the minimum supported version that Buildroot supports is 4.8.

Fixes:
http://autobuild.buildroot.net/results/e5a02faa75345009e7cdcbf9d693199bee4741aa

---
 ...fdiagnostics-color-from-make-command.patch | 29 +++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 package/ninja/0002-remove-fdiagnostics-color-from-make-command.patch
package/ninja/0002-remove-fdiagnostics-color-from-make-command.patch new file +29 -0
new file mode 100644
index 0000000000..d419ab48dc
@@ -0,0 +1,29 @@
+From 87caa8c4bc536f745aceed757ce8a492fbdba84f Mon Sep 17 00:00:00 2001
+From: Adam Duskett <[email protected]>
+Date: Mon, 3 Feb 2020 07:36:58 -0800
+Subject: [PATCH] remove fdiagnostics-color from make command
+
+-fdiagnostics-color was introduced in gcc 4.9 and the minimum supported version
+that Buildroot supports is 4.8.
+
+Signed-off-by: Adam Duskett <[email protected]>
+---
+ CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index a040e0b..af8010f 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -18,7 +18,7 @@ if(MSVC)
+ 	set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
+ 	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /GR- /Zc:__cplusplus")
+ else()
+-	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated -fdiagnostics-color")
++	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wno-deprecated")
+ endif()
+ 
+ find_program(RE2C re2c)
+-- 
+2.24.1
+
Signature · 1 line
2.24.1
#1 lore raw

PATCH 1/1 package/ninja: remove fdiagnostics-color from make command

Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adam" == Adam Duskett <[email protected]> writes:

-fdiagnostics-color was introduced in gcc 4.9 and the minimum supported version that Buildroot supports is 4.8.

Fixes:
http://autobuild.buildroot.net/results/e5a02faa75345009e7cdcbf9d693199bee4741aa

Slightly tweaked the commit message and committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard