Skip to content

Commit

Permalink
Merge pull request #79 from dirk-zimoch/colors
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphlange committed May 24, 2023
2 parents c8b2773 + 8ea5115 commit a8bffdc
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions cue.py
Original file line number Diff line number Diff line change
Expand Up @@ -1209,6 +1209,15 @@ def prepare(args):
with open(os.path.join(places['EPICS_BASE'], 'configure', 'CONFIG_SITE'), 'a') as f:
f.write(extra_config)

# enable color in error and warning messages if the (cross) compiler supports it
with open(os.path.join(places['EPICS_BASE'], 'configure', 'CONFIG'), 'a') as f:
f.write('''
ifdef T_A
COLOR_FLAG_$(T_A) := $(shell $(CPP) -fdiagnostics-color -E - </dev/null >/dev/null 2>/dev/null && echo -fdiagnostics-color)
$(info Checking if $(CPP) supports -fdiagnostics-color: $(if $(COLOR_FLAG_$(T_A)),yes,no))
USR_CPPFLAGS += $(COLOR_FLAG_$(T_A))
endif''')

fold_end('set.up.epics_build', 'Configuring EPICS build system')

if ci['os'] == 'windows' and ci['choco']:
Expand Down

0 comments on commit a8bffdc

Please sign in to comment.