<commit_before>ifeq (,$(strip $(NDK)))
$(error NDK is not defined!)
endif

override NDK := $(realpath $(wildcard $(NDK)))

ifeq (,$(strip $(SOURCES)))
$(error SOURCES are not defined!)
endif

ifeq (,$(strip $(HEADERS)))
$(error HEADERS are not defined!)
endif

ifeq (,$(strip $(TOPDIR)))
$(error TOPDIR is not defined!)
endif

ifeq (,$(strip $(MYDIR)))
$(error MYDIR is not defined!)
endif

FRAMEWORK ?= $(notdir $(MYDIR))

DEVDEFAULTS = $(NDK)/build/tools/dev-defaults.sh

OBJC2 := $(NDK)/$(shell source $(DEVDEFAULTS) && echo $$GNUSTEP_OBJC2_SUBDIR)

LLVM_VERSION ?= $(shell source $(DEVDEFAULTS) && echo $$DEFAULT_LLVM_VERSION)
GCC_VERSION  ?= $(shell source $(DEVDEFAULTS) && echo $$DEFAULT_GCC_VERSION)

PREFIX ?= $(NDK)/$(shell source $(DEVDEFAULTS) && echo $$COCOTRON_SUBDIR)/frameworks
ABIS ?= $(shell source $(DEVDEFAULTS) && echo $$PREBUILT_ABIS)

# $1: ABI
# $2: source file
define commonflags
$(strip \
	-fgnu-runtime \
	-fobjc-nonfragile-abi \
	-fblocks \
	-fno-objc-arc \
	-fintegrated-as \
	-fpic \
	-O3 -g \
	-Werror \
	-DOBJC_EXPORT= \
	-DGCC_RUNTIME_3 \
	-DPTHREAD_INSIDE_BUILD \
	-DCFNETWORK_INSIDE_BUILD \
	-DCOREFOUNDATION_INSIDE_BUILD \
	-DFOUNDATION_INSIDE_BUILD \
	-DOBJC_INSIDE_BUILD \
	-DPLATFORM_IS_POSIX \<commit_msg>Use build/instruments instead of build/tools<commit_after>ifeq (,$(strip $(NDK)))
$(error NDK is not defined!)
endif

override NDK := $(realpath $(wildcard $(NDK)))

ifeq (,$(strip $(SOURCES)))
$(error SOURCES are not defined!)
endif

ifeq (,$(strip $(HEADERS)))
$(error HEADERS are not defined!)
endif

ifeq (,$(strip $(TOPDIR)))
$(error TOPDIR is not defined!)
endif

ifeq (,$(strip $(MYDIR)))
$(error MYDIR is not defined!)
endif

FRAMEWORK ?= $(notdir $(MYDIR))

DEVDEFAULTS = $(NDK)/build/instruments/dev-defaults.sh

OBJC2 := $(NDK)/$(shell source $(DEVDEFAULTS) && echo $$GNUSTEP_OBJC2_SUBDIR)

LLVM_VERSION ?= $(shell source $(DEVDEFAULTS) && echo $$DEFAULT_LLVM_VERSION)
GCC_VERSION  ?= $(shell source $(DEVDEFAULTS) && echo $$DEFAULT_GCC_VERSION)

PREFIX ?= $(NDK)/$(shell source $(DEVDEFAULTS) && echo $$COCOTRON_SUBDIR)/frameworks
ABIS ?= $(shell source $(DEVDEFAULTS) && echo $$PREBUILT_ABIS)

# $1: ABI
# $2: source file
define commonflags
$(strip \
	-fgnu-runtime \
	-fobjc-nonfragile-abi \
	-fblocks \
	-fno-objc-arc \
	-fintegrated-as \
	-fpic \
	-O3 -g \
	-Werror \
	-DOBJC_EXPORT= \
	-DGCC_RUNTIME_3 \
	-DPTHREAD_INSIDE_BUILD \
	-DCFNETWORK_INSIDE_BUILD \
	-DCOREFOUNDATION_INSIDE_BUILD \
	-DFOUNDATION_INSIDE_BUILD \
	-DOBJC_INSIDE_BUILD \
	-DPLATFORM_IS_POSIX \
{'fraction_non_alphanumeric': 0.17016224772457458, 'fraction_numerical': 0.004748713889988128, 'mean_word_length': 4.732426303854876, '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': '1627176', 'n_tokens_mistral': 1033, 'n_tokens_neox': 993, 'n_words': 224}