gitlab-ci, meson: Enable colored Clang output

This makes easier to spot warnings.
This commit is contained in:
Bruno 2024-06-13 22:25:29 -03:00
parent fa26f20e9f
commit 0f42555484
2 changed files with 8 additions and 2 deletions

View File

@ -102,6 +102,8 @@ variables:
# CI-wide Debian variables
ARTIFACTS_SUFFIX: "-x64"
GIMP_PREFIX: "${CI_PROJECT_DIR}/_install${ARTIFACTS_SUFFIX}"
# Enable colorful output when supported (e.g. ninja, cppcheck)
CLICOLOR_FORCE: "1"
stages:

View File

@ -289,10 +289,14 @@ if platform_windows and cc.get_id() == 'gcc'
compiler_args += msvc_compat_args
endif
# Optimize DWARF symbols to Dr. Mingw
# https://github.com/jrfonseca/drmingw/issues/42
if platform_windows and cc.get_id() == 'clang'
# Optimize DWARF symbols to Dr. Mingw
# https://github.com/jrfonseca/drmingw/issues/42
compiler_args += '-gdwarf-aranges'
# Workaround to get colored output
# https://github.com/msys2/MINGW-packages/issues/2988
compiler_args += '-fansi-escape-codes'
endif
# Generate .pdb (CodeView) debug symbols (makes possible to debug with DIA SDK)