Skip to content

Commit d31efbf

Browse files
committed
Makefile.Libsupport: add more customization options
This change allows the customization of the exit mechanism in the last chance handler, and to pass compilation flags when building the support library. This is in preparation of the introduction of a CCG testsuite run. The heuristics to choose which compilation flags need to be passed to gprbuild, and which exit mechanism needs to be used in the last chance handler do not work in a CCG context. Instead of adding corner cases for each configuration, allow configuring these features during the make invocation.
1 parent 11582b6 commit d31efbf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/gnatcov/examples/support/Makefile.libsupport

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ include Makefile.common
77
# at this stage.
88

99
ifneq ($(TARGET),)
10-
LIBSUPPORT_CFLAGS=-fdump-scos -fpreserve-control-flow -g
10+
LIBSUPPORT_CFLAGS:=-fdump-scos -fpreserve-control-flow -g $(LIBSUPPORT_CFLAGS)
1111
endif
1212

1313
all: $(SUPPORT_TARGET_SRC_DIR) $(LIBSUPPORT_DIR) LIBSUPPORT LCH
@@ -21,7 +21,7 @@ all: $(SUPPORT_TARGET_SRC_DIR) $(LIBSUPPORT_DIR) LIBSUPPORT LCH
2121
# Pick a default kind of silent last chance handler, that users of this
2222
# Makefile can override if needed, e.g. for VxWorks kinds of configurations
2323
# which are cross targets with "full" runtimes akin to native profiles.
24-
SILENT_LCH = $(strip $(if $(TARGET), abort, exit))
24+
SILENT_LCH ?= $(strip $(if $(TARGET), abort, exit))
2525

2626
conf.gpr: force
2727
sed -e 's/%TARGET%/$(TARGET)/g' \

0 commit comments

Comments
 (0)