mirror of
https://github.com/obgm/libcoap.git
synced 2026-11-21 14:59:06 +03:00
Check if compiler supports -fdiagnostics-color
Newer compilers such as clang or gcc 4.9 can emit colorized diagnostics. For gcc, this flag must be present to switch coloring on.
This commit is contained in:
1 parent
81bc3dd9f5
commit
e3f555f396
1 file changed
+1
@@ -114,6 +114,7 @@ WARNING_CFLAGS="\
|
||||
|
||||
# check whether or not the compiler supports -Wlogical-op (clang does not...)
|
||||
AX_CHECK_COMPILE_FLAG([-Wlogical-op], [WARNING_CFLAGS="$WARNING_CFLAGS -Wlogical-op"])
|
||||
AX_CHECK_COMPILE_FLAG([-fdiagnostics-color], [CFLAGS="$CFLAGS -fdiagnostics-color"])
|
||||
|
||||
AC_SUBST([WARNING_CFLAGS])
|
||||
|
||||
|
||||
Reference in new issue
Block a user