<commit_before>
include mk/core/common.mk

CFLAGS ?=
CXXFLAGS ?=
CPPFLAGS ?=
ASFLAGS ?=
ARFLAGS ?=
LDFLAGS ?=

CROSS_COMPILE ?=

CC      := $(CROSS_COMPILE)gcc
CPP     := $(CC) -E
CXX     := $(CROSS_COMPILE)g++
AR      := $(CROSS_COMPILE)ar
AS      := $(CROSS_COMPILE)as
LD      := $(CROSS_COMPILE)ld
NM      := $(CROSS_COMPILE)nm
OBJDUMP := $(CROSS_COMPILE)objdump
OBJCOPY := $(CROSS_COMPILE)objcopy
SIZE    := $(CROSS_COMPILE)size

comma_sep_list = $(subst $(\s),$(,),$(strip $1))

COVERAGE_CFLAGS ?= -finstrument-functions \
   -finstrument-functions-exclude-function-list=$(call comma_sep_list, \
			symbol_lookup \
			__cyg_profile_func_enter \
			__cyg_profile_func_exit \
			__coverage_func_enter \
			__coverage_func_exit \
			bitmap_set_bit)

PROFILING_CFLAGS ?= -finstrument-functions \
   -finstrument-functions-exclude-function-list=$(call comma_sep_list, \
			__cyg_profile_func_enter \
			__cyg_profile_func_exit \<commit_msg>mk: Allow to redefine parts from toolchain<commit_after>
include mk/core/common.mk

CFLAGS ?=
CXXFLAGS ?=
CPPFLAGS ?=
ASFLAGS ?=
ARFLAGS ?=
LDFLAGS ?=

CROSS_COMPILE ?=

CC      ?= $(CROSS_COMPILE)gcc
CPP     ?= $(CC) -E
CXX     ?= $(CROSS_COMPILE)g++
AR      ?= $(CROSS_COMPILE)ar
AS      ?= $(CROSS_COMPILE)as
LD      ?= $(CROSS_COMPILE)ld
NM      ?= $(CROSS_COMPILE)nm
OBJDUMP ?= $(CROSS_COMPILE)objdump
OBJCOPY ?= $(CROSS_COMPILE)objcopy
SIZE    ?= $(CROSS_COMPILE)size

comma_sep_list = $(subst $(\s),$(,),$(strip $1))

COVERAGE_CFLAGS ?= -finstrument-functions \
   -finstrument-functions-exclude-function-list=$(call comma_sep_list, \
			symbol_lookup \
			__cyg_profile_func_enter \
			__cyg_profile_func_exit \
			__coverage_func_enter \
			__coverage_func_exit \
			bitmap_set_bit)

PROFILING_CFLAGS ?= -finstrument-functions \
   -finstrument-functions-exclude-function-list=$(call comma_sep_list, \
			__cyg_profile_func_enter \
			__cyg_profile_func_exit \
{'fraction_non_alphanumeric': 0.1356731272917758, 'fraction_numerical': 0.0010476689366160294, 'mean_word_length': 4.120643431635389, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5745632', 'n_tokens_mistral': 812, 'n_tokens_neox': 770, 'n_words': 108}