]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Make: Add option to force colors in compiler output
authorJan Maria Matejka <mq@ucw.cz>
Tue, 17 Jul 2018 13:39:06 +0000 (15:39 +0200)
committerJan Maria Matejka <mq@ucw.cz>
Tue, 14 Aug 2018 12:01:39 +0000 (14:01 +0200)
Makefile.in

index 5665f1d39245c5efad5d54c0838dbd83017f0bd7..6e281cfc1f16a802a73145ca0544f484c94967b1 100644 (file)
@@ -55,6 +55,10 @@ else
   Q:=
 endif
 
+ifneq ($(COLOR),)
+  CFLAGS += -fdiagnostics-color=always
+endif
+
 # Meta rules
 docgoals := docs userdocs progdocs
 testgoals := check test tests tests_run